aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-02-20 17:52:00 +0100
committerAndreas Schneider <asn@samba.org>2018-02-20 18:47:21 +0100
commit986684ffa03f15f270c4deec2068ac3d2a450dea (patch)
tree78e28a9575386795331997b5c2ec4c4d0fee8ab5 /src
parent9a23836b9789ae6405734e075fb440c3c06ad4ee (diff)
downloadsocket_wrapper-986684ffa03f15f270c4deec2068ac3d2a450dea.tar.gz
socket_wrapper-986684ffa03f15f270c4deec2068ac3d2a450dea.tar.xz
socket_wrapper-986684ffa03f15f270c4deec2068ac3d2a450dea.zip
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 <asn@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/socket_wrapper.c2
1 files changed, 1 insertions, 1 deletions
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 */