[SCM] Socket Wrapper Repository - branch master updated
Michael Adam
obnox at samba.org
Thu Jul 27 14:14:35 UTC 2017
The branch, master has been updated
via fa9cc40 swrap: Protect the FALL_THROUGH define
from fafd5ed cmake: Replace deprecated get_target_property()
https://git.samba.org/?p=socket_wrapper.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit fa9cc407f1a8bd17433835eedcc0135424d420a1
Author: Andreas Schneider <asn at samba.org>
Date: Thu Jul 27 13:18:12 2017 +0200
swrap: Protect the FALL_THROUGH define
Signed-off-by: Andreas Schneider <asn at samba.org>
Reviewed-by: Michael Adam <obnox at samba.org>
-----------------------------------------------------------------------
Summary of changes:
src/socket_wrapper.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
Changeset truncated at 500 lines:
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index 46fb683..280215e 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -107,11 +107,13 @@ enum swrap_dbglvl_e {
#define DESTRUCTOR_ATTRIBUTE
#endif
-#ifdef HAVE_FALLTHROUGH_ATTRIBUTE
-#define FALL_THROUGH __attribute__ ((fallthrough))
-#else
-#define FALL_THROUGH
-#endif
+#ifndef FALL_THROUGH
+# ifdef HAVE_FALLTHROUGH_ATTRIBUTE
+# define FALL_THROUGH __attribute__ ((fallthrough))
+# else /* HAVE_FALLTHROUGH_ATTRIBUTE */
+# define FALL_THROUGH
+# endif /* HAVE_FALLTHROUGH_ATTRIBUTE */
+#endif /* FALL_THROUGH */
#ifdef HAVE_ADDRESS_SANITIZER_ATTRIBUTE
#define DO_NOT_SANITIZE_ADDRESS_ATTRIBUTE __attribute__((no_sanitize_address))
--
Socket Wrapper Repository
More information about the samba-cvs
mailing list