Fix: lttng: -Wshadow error in cmd_snapshot
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 14 Apr 2021 14:12:04 +0000 (10:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 19 Apr 2021 15:15:29 +0000 (11:15 -0400)
commit974736831535ecd0fe165beb55f66b4385b11fb0
treec8ac6966f3a7c1e9544662a25cb884ae1b13fcd5
parent2d44f8b36dc75971082d70f3f4bd0cac523c2eef
Fix: lttng: -Wshadow error in cmd_snapshot

The optarg variable name shadows a variable in an external dependency.
clang returns the following error on my machine:
  commands/snapshot.c:627:16: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
                          const char *optarg = poptGetOptArg(pc);
                                      ^
  /usr/include/x86_64-linux-gnu/bits/getopt_core.h:36:14: note: previous declaration is here
  extern char *optarg;

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I85dd7b0761ebc2c023d84ba869c0551f91f38a17
src/bin/lttng/commands/snapshot.c
This page took 0.029323 seconds and 4 git commands to generate.