configure: enable -Wsuggest-attribute=format
[lttng-tools.git] / tests / utils / xml-utils / validate_xml.cpp
index bb67e56e17edea75706b56c50ec072c49f2433be..56002ed7cd4769e7b1a3c83ed2fa106e2723352b 100644 (file)
@@ -27,6 +27,8 @@
 #include <lttng/lttng-error.h>
 #include <common/macros.h>
 
+#include <common/macros.h>
+
 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;
This page took 0.023099 seconds and 4 git commands to generate.