X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Fxml-utils%2Fvalidate_xml.cpp;h=92f08f203221458b5c1dce0250ce9162fa34db58;hb=1c9a0b0e83c7e073c4e576c0bed95de335b0e502;hp=fa8b2cc9d5d524995e91f8b7837eae29c8cb3c2b;hpb=4b2b86f24a5f734f6a6564b2b1e7ac6f10e32dfa;p=lttng-tools.git diff --git a/tests/utils/xml-utils/validate_xml.cpp b/tests/utils/xml-utils/validate_xml.cpp index fa8b2cc9d..92f08f203 100644 --- a/tests/utils/xml-utils/validate_xml.cpp +++ b/tests/utils/xml-utils/validate_xml.cpp @@ -41,7 +41,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 +151,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) {