X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fmetadata.cpp;h=8f4d8df632235c508cbdc3657f32bff7c28322d6;hb=1c9a0b0e83c7e073c4e576c0bed95de335b0e502;hp=35aea004e67aecb05b5c44c54630468b82c551ce;hpb=48a4000561343808724f7cb5fa8c131877489ccd;p=lttng-tools.git diff --git a/src/bin/lttng/commands/metadata.cpp b/src/bin/lttng/commands/metadata.cpp index 35aea004e..8f4d8df63 100644 --- a/src/bin/lttng/commands/metadata.cpp +++ b/src/bin/lttng/commands/metadata.cpp @@ -41,7 +41,7 @@ static struct poptOption long_options[] = { { "help", 'h', POPT_ARG_NONE, 0, OPT_HELP, 0, 0, }, { "session", 's', POPT_ARG_STRING, &opt_session_name, 0, 0, 0}, { "list-options", 0, POPT_ARG_NONE, NULL, OPT_LIST_OPTIONS, 0, 0, }, - { "list-commands", 0, POPT_ARG_NONE, NULL, OPT_LIST_COMMANDS}, + { "list-commands", 0, POPT_ARG_NONE, NULL, OPT_LIST_COMMANDS, NULL, NULL}, { 0, 0, 0, 0, 0, 0, 0, }, }; @@ -66,7 +66,8 @@ static int count_arguments(const char **argv) return i; } -static int metadata_regenerate(int argc, const char **argv) +static int metadata_regenerate(int argc, + const char **argv __attribute__((unused))) { int ret;