Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'xmlSubstituteEntitiesDefault' is deprecated, '__xmlLoadExtDtdDefaultValue' is deprecated #37

Open
ryandesign opened this issue Jun 25, 2024 · 0 comments

Comments

@ryandesign
Copy link

ryandesign commented Jun 25, 2024

These warnings appear when compiling the latest code in the repository using libxml2 2.13.1:

pazpar2_config.c:1302:5: warning: 'xmlSubstituteEntitiesDefault' is deprecated [-Wdeprecated-declarations]
 1302 |     xmlSubstituteEntitiesDefault(1);
      |     ^
/opt/local/include/libxml2/libxml/parser.h:947:1: note: 'xmlSubstituteEntitiesDefault' has been explicitly marked deprecated here
  947 | XML_DEPRECATED XMLPUBFUN int
      | ^
/opt/local/include/libxml2/libxml/xmlexports.h:69:43: note: expanded from macro 'XML_DEPRECATED'
   69 |     #define XML_DEPRECATED __attribute__((deprecated))
      |                                           ^
pazpar2_config.c:1303:5: warning: '__xmlLoadExtDtdDefaultValue' is deprecated [-Wdeprecated-declarations]
 1303 |     xmlLoadExtDtdDefaultValue = 1;
      |     ^
/opt/local/include/libxml2/libxml/parser.h:896:37: note: expanded from macro 'xmlLoadExtDtdDefaultValue'
  896 |   #define xmlLoadExtDtdDefaultValue XML_GLOBAL_MACRO(xmlLoadExtDtdDefaultValue)
      |                                     ^
/opt/local/include/libxml2/libxml/xmlexports.h:124:36: note: expanded from macro 'XML_GLOBAL_MACRO'
  124 |   #define XML_GLOBAL_MACRO(name) (*__##name())
      |                                    ^
<scratch space>:2:1: note: expanded from here
    2 | __xmlLoadExtDtdDefaultValue
      | ^
/opt/local/include/libxml2/libxml/parser.h:885:1: note: '__xmlLoadExtDtdDefaultValue' has been explicitly marked deprecated here
  885 | XML_GLOBALS_PARSER
      | ^
/opt/local/include/libxml2/libxml/parser.h:881:3: note: expanded from macro 'XML_GLOBALS_PARSER'
  881 |   XML_GLOBALS_PARSER_CORE \
      |   ^
/opt/local/include/libxml2/libxml/parser.h:867:42: note: expanded from macro 'XML_GLOBALS_PARSER_CORE'
  867 |   XML_OP(xmlLoadExtDtdDefaultValue, int, XML_DEPRECATED) \
      |                                          ^
/opt/local/include/libxml2/libxml/xmlexports.h:69:43: note: expanded from macro 'XML_DEPRECATED'
   69 |     #define XML_DEPRECATED __attribute__((deprecated))
      |                                           ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant