X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Fxml-utils%2Fvalidate_xml.cpp;h=b185161b5178b84ce9e80bb4c2a4cfd0027174bc;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hp=56002ed7cd4769e7b1a3c83ed2fa106e2723352b;hpb=d22ad5f818289bb10faa814c2ecef071ec0c2c67;p=lttng-tools.git diff --git a/tests/utils/xml-utils/validate_xml.cpp b/tests/utils/xml-utils/validate_xml.cpp index 56002ed7c..b185161b5 100644 --- a/tests/utils/xml-utils/validate_xml.cpp +++ b/tests/utils/xml-utils/validate_xml.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014 Jonathan Rajotte + * Copyright (C) 2014 EfficiOS Inc. * * SPDX-License-Identifier: LGPL-2.1-only * @@ -25,9 +25,7 @@ #include #include -#include - -#include +#include 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) {