From: Simon Marchi Date: Thu, 28 Nov 2019 21:32:16 +0000 (-0500) Subject: tests: put `static` keyword at beginning of variable declaration X-Git-Tag: v2.12.0-rc1~205 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=44a411a6644868831d984267e3a553c2c0631c69;p=lttng-tools.git tests: put `static` keyword at beginning of variable declaration Fix: CC select_poll_epoll-select_poll_epoll.o /home/smarchi/src/lttng-tools/tests/regression/kernel/select_poll_epoll.c:34:1: error: ‘static’ is not at beginning of declaration [-Werror=old-style-declaration] volatile static int stop_thread; ^~~~~~~~ Change-Id: I2cf1a7d50a01ca0e9226ea527f2e8af70a292f94 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/kernel/select_poll_epoll.c b/tests/regression/kernel/select_poll_epoll.c index 3aa639316..e667e1766 100644 --- a/tests/regression/kernel/select_poll_epoll.c +++ b/tests/regression/kernel/select_poll_epoll.c @@ -31,7 +31,7 @@ #define MSEC_PER_NSEC (MSEC_PER_USEC * 1000) static int timeout; /* seconds, -1 to disable */ -volatile static int stop_thread; +static volatile int stop_thread; static int wait_fd; struct ppoll_thread_data {