From 9dab8fa4412f1302c38ef36cecb9a65e91f3c449 Mon Sep 17 00:00:00 2001 From: Danilo Del Busso Date: Wed, 21 Aug 2024 09:10:56 +0100 Subject: [PATCH] Add temporary exception for deprecation of `xmlStringDecodeEntities` Signed-off-by: Danilo Del Busso --- ocaml/sdk-gen/c/autogen/src/xen_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ocaml/sdk-gen/c/autogen/src/xen_common.c b/ocaml/sdk-gen/c/autogen/src/xen_common.c index 9178d3fd43f..43b039db6f3 100644 --- a/ocaml/sdk-gen/c/autogen/src/xen_common.c +++ b/ocaml/sdk-gen/c/autogen/src/xen_common.c @@ -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; }