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 --- libdw/encoded-value.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libdw/encoded-value.h') diff --git a/libdw/encoded-value.h b/libdw/encoded-value.h index 48d868fb..f0df4cec 100644 --- a/libdw/encoded-value.h +++ b/libdw/encoded-value.h @@ -64,6 +64,7 @@ encoded_value_size (const Elf_Data *data, const unsigned char e_ident[], if (*end++ & 0x80u) return end - p; } + return 0; default: return 0; -- cgit v1.2.3