GNOME Bugzilla – Bug 582213
INCLUDE_RECURSION
Last modified: 2021-07-05 13:22:58 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 "libxml2/include/libxml/xmlmemory.h" includes itself: xmlmemory.h -> threads.h -> globals.h -> xmlmemory.h Event primary_file: During compilation of file 'd:/development/projects/avp/xoslib/libxml2/src/sax.c' Steps to reproduce: 1. File: globals.h 2. Line# 22 => #include <libxml/xmlmemory.h> 3. #include file "libxml2/include/libxml/xmlmemory.h" includes itself: xmlmemory.h -> threads.h -> globals.h -> xmlmemory.h Event primary_file Actual results: Expected results: Does this happen every time? Other information:
Whatever myserious tool it is that shows this, it seems to be a libxml issue rather than a libxml++ issue.
*** Bug 582211 has been marked as a duplicate of this bug. ***
Could you please tell us what this PW.INCLUDE_RECURSION warning is? Is that a Coverity thing? Anyway, I guess that a patch would be welcome.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.