Rename C++ header files to .hpp
[lttng-tools.git] / tests / utils / xml-utils / validate_xml.cpp
index fa8b2cc9d5d524995e91f8b7837eae29c8cb3c2b..b185161b5178b84ce9e80bb4c2a4cfd0027174bc 100644 (file)
@@ -25,9 +25,7 @@
 #include <libxml/parser.h>
 
 #include <lttng/lttng-error.h>
-#include <common/macros.h>
-
-#include <common/macros.h>
+#include <common/macros.hpp>
 
 struct validation_ctx {
        xmlSchemaParserCtxtPtr parser_ctx;
@@ -41,7 +39,8 @@ enum command_err_code {
 };
 
 static ATTR_FORMAT_PRINTF(2, 3)
-void xml_error_handler(void *ctx, const char *format, ...)
+void xml_error_handler(void *ctx __attribute__((unused)),
+               const char *format, ...)
 {
        char *err_msg;
        va_list args;
@@ -150,10 +149,10 @@ end:
 
 
 }
-int main(int argc, char **argv, char *env[])
+int main(int argc, char **argv)
 {
        int ret;
-       struct validation_ctx ctx = { 0 };
+       struct validation_ctx ctx = {};
 
        /* Check if we have all argument */
        if (argc < 3) {
This page took 0.023043 seconds and 4 git commands to generate.