Fix: tests: fix unused-but-set warning in test_fd_tracker.c
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 10 Nov 2021 13:42:25 +0000 (08:42 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 17 Nov 2021 19:05:32 +0000 (14:05 -0500)
commit3a5f70173aa04d11ccb22694d5d31a702cad33ab
tree270fddf74bd456675ac3939611302f414ce64b43
parent9c7134c044b76258a69abd8e6541d8c95f5acb99
Fix: tests: fix unused-but-set warning in test_fd_tracker.c

When building with clang-14 on Ubuntu 20.04, I get:

      CC       test_fd_tracker.o
    /home/smarchi/src/lttng-tools/tests/unit/test_fd_tracker.c:169:15: error: variable 'fds_set_to_minus_1' set but not used [-Werror,-Wunused-but-set-variable]
            unsigned int fds_set_to_minus_1 = 0;
                         ^

The compiler seems right, so remove fds_set_to_minus_1.  It might be
that the intention was to assert something using this variable, but I
couldn't figure it out.

Change-Id: I12bfd07bca7829de8d5b85d375d9b52bd84d677a
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_fd_tracker.c
This page took 0.025281 seconds and 4 git commands to generate.