URL: https://github.com/SSSD/sssd/pull/521 Author: cryptomilk Title: #521: Avoid double semicolon warnings on older compilers Action: opened
PR body: """ Compilers that don't support fallthrough will end up with an empty SSS_ATTRIBUTE_FALLTHROUGH define and just see a semicolon. The probably will warn that there are double semicolons in the code. Signed-off-by: Andreas Schneider <a...@redhat.com> """ To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/521/head:pr521 git checkout pr521
From 1043b0b246384108f8ac9aef71a4cf7eff36cb90 Mon Sep 17 00:00:00 2001 From: Andreas Schneider <a...@redhat.com> Date: Tue, 20 Feb 2018 17:46:41 +0100 Subject: [PATCH] Avoid double semicolon warnings on older compilers Compilers that don't support fallthrough will end up with an empty SSS_ATTRIBUTE_FALLTHROUGH define and just see a semicolon. The probably will warn that there are double semicolons in the code. Signed-off-by: Andreas Schneider <a...@redhat.com> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7e699d33e..fafb73500 100644 --- a/configure.ac +++ b/configure.ac @@ -459,7 +459,7 @@ AC_CACHE_CHECK( sss_cv_attribute_fallthrough_val="__attribute__ ((fallthrough))" ],[ sss_cv_attribute_fallthrough=no - sss_cv_attribute_fallthrough_val= + sss_cv_attribute_fallthrough_val="((void)0)" ]) ]) CFLAGS=$SAFE_CFLAGS
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org