Skip to content

Commit

Permalink
Add temporary exception for deprecation of xmlStringDecodeEntities
Browse files Browse the repository at this point in the history
Signed-off-by: Danilo Del Busso <[email protected]>
  • Loading branch information
danilo-delbusso committed Aug 21, 2024
1 parent 42f5d3f commit 9dab8fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ocaml/sdk-gen/c/autogen/src/xen_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,10 @@ get_val_as_string(const struct abstract_type *type, void *value)
{
xmlChar *encoded_value = *(xmlChar **)value;
xmlParserCtxtPtr ctxt = xmlCreateDocParserCtxt(encoded_value);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
char *res = (char*)xmlStringDecodeEntities(ctxt, encoded_value, 1, 0, 0, 0);
#pragma GCC diagnostic pop
xmlFreeParserCtxt(ctxt);
return res;
}
Expand Down

0 comments on commit 9dab8fa

Please sign in to comment.