Skip to content

Commit

Permalink
Merge pull request #5946 from danilo-delbusso/dev/add-deprecation-exc…
Browse files Browse the repository at this point in the history
…eption

Add temporary exception for deprecation of `xmlStringDecodeEntities`
  • Loading branch information
kc284 committed Aug 22, 2024
2 parents 14c2bb1 + 9dab8fa commit 393373c
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 393373c

Please sign in to comment.