X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Ftrack-untrack.cpp;h=8e9bec149e7cb3f881d30b829491edad59595a2b;hb=f149493493fbd8a3efa4748832c03278c96c38ca;hp=59b6144232a3efe335d8e7eb980f7a9241573613;hpb=17acb03ff782169d659eaa65e0e70402222e8b34;p=lttng-tools.git diff --git a/src/bin/lttng/commands/track-untrack.cpp b/src/bin/lttng/commands/track-untrack.cpp index 59b614423..8e9bec149 100644 --- a/src/bin/lttng/commands/track-untrack.cpp +++ b/src/bin/lttng/commands/track-untrack.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 David Goulet + * Copyright (C) 2011 EfficiOS Inc. * Copyright (C) 2015 Mathieu Desnoyers * Copyright (C) 2020 Jérémie Galarneau * @@ -20,16 +20,17 @@ #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include -#include "../command.h" +#include "../command.hpp" +namespace { struct process_attr_command_args { enum lttng_process_attr process_attr; /* Present in the user's command. */ @@ -37,6 +38,7 @@ struct process_attr_command_args { bool all; struct lttng_dynamic_pointer_array string_args; }; +} /* namespace */ enum cmd_type { CMD_TRACK, @@ -566,7 +568,7 @@ end: static int cmd_track_untrack(enum cmd_type cmd_type, int argc, const char **argv, - const char *help_msg) + const char *help_msg __attribute__((unused))) { int opt, ret = 0; bool sub_command_failed = false;