From 986684ffa03f15f270c4deec2068ac3d2a450dea Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 20 Feb 2018 17:52:00 +0100 Subject: swrap: Avoid double semicolons in the code Compilers that don't support fallthrough will end up with an empty FALL_THROUGH define and just see a semicolon. The probably will warn that there are double semicolons in the code. Signed-off-by: Andreas Schneider --- src/socket_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 539d27d..02fe970 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -111,7 +111,7 @@ enum swrap_dbglvl_e { # ifdef HAVE_FALLTHROUGH_ATTRIBUTE # define FALL_THROUGH __attribute__ ((fallthrough)) # else /* HAVE_FALLTHROUGH_ATTRIBUTE */ -# define FALL_THROUGH +# define FALL_THROUGH ((void)0) # endif /* HAVE_FALLTHROUGH_ATTRIBUTE */ #endif /* FALL_THROUGH */ -- cgit