X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Fxml-utils%2Fvalidate_xml.cpp;fp=tests%2Futils%2Fxml-utils%2Fvalidate_xml.cpp;h=56002ed7cd4769e7b1a3c83ed2fa106e2723352b;hp=bb67e56e17edea75706b56c50ec072c49f2433be;hb=d22ad5f818289bb10faa814c2ecef071ec0c2c67;hpb=9f4a25d35d037cbb5d8aeb50f9e8fa10748a4d14 diff --git a/tests/utils/xml-utils/validate_xml.cpp b/tests/utils/xml-utils/validate_xml.cpp index bb67e56e1..56002ed7c 100644 --- a/tests/utils/xml-utils/validate_xml.cpp +++ b/tests/utils/xml-utils/validate_xml.cpp @@ -27,6 +27,8 @@ #include #include +#include + struct validation_ctx { xmlSchemaParserCtxtPtr parser_ctx; xmlSchemaPtr schema; @@ -38,7 +40,7 @@ enum command_err_code { CMD_ERROR }; -static +static ATTR_FORMAT_PRINTF(2, 3) void xml_error_handler(void *ctx, const char *format, ...) { char *err_msg;