From a3cc8182b2ae05290b0eafa74b70746d7befc0e4 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 2 Nov 2016 13:29:26 +0100 Subject: Add GCC7 -Wimplicit-fallthrough support/fixes. GCC7 will have a new -Wimplicit-fallthrough warning. It did catch one small buglet in elflint option procession. So it seems useful to enable to make sure all swatch case fallthroughs are deliberate. Add configure check to detect whether gcc support -Wimplicit-fallthrough and enable it. Add fixes and explicit fallthrough comments where necessary. Signed-off-by: Mark Wielaard --- tests/backtrace-data.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/backtrace-data.c') diff --git a/tests/backtrace-data.c b/tests/backtrace-data.c index bc5ceba0..b7158dae 100644 --- a/tests/backtrace-data.c +++ b/tests/backtrace-data.c @@ -250,6 +250,7 @@ thread_callback (Dwfl_Thread *thread, void *thread_arg __attribute__ ((unused))) break; case -1: error (1, 0, "dwfl_thread_getframes: %s", dwfl_errmsg (-1)); + break; default: abort (); } -- cgit v1.2.3