After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 582211 - INCLUDE_RECURSION
INCLUDE_RECURSION
Status: RESOLVED DUPLICATE of bug 582213
Product: libxml
Classification: Deprecated
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-11 17:43 UTC by TC Nguyen
Modified: 2010-06-14 06:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description TC Nguyen 2009-05-11 17:43:40 UTC
Please describe the problem:
The PW.INCLUDE_RECURSION warning reports recursive header file problems that can cause the code to not compile, or that cause incorrect run-time behavior. Code might not compile if there is a dependency cycle in two header files that are included. Incorrect run-time behavior can occur because of function overloading, for example. Also, recursive include files can be difficult to maintain and problems difficult to fix.

#include file "libxml/threads.h" includes itself: threads.h -> globals.h -> threads.h


Steps to reproduce:
1. File "libxml2\include\libxml\globals.h"
2. Line# 166 => #include <libxml/threads.h>
3. #include file "libxml/threads.h" includes itself: threads.h -> globals.h -> threads.h



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Murray Cumming 2010-03-30 16:05:05 UTC
Whatever myserious tool it is that shows this, it seems to be a libxml issue rather than a libxml++ issue.
Comment 2 Murray Cumming 2010-06-14 06:52:02 UTC

*** This bug has been marked as a duplicate of bug 582213 ***