git: a9d18746f016 - stable/13 - cdefs.h: Remove redundant #ifdefs
Warner Losh
imp at FreeBSD.org
Wed Sep 22 14:30:47 UTC 2021
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=a9d18746f016c4acbaba2dec86a32cee5e9c9aa5
commit a9d18746f016c4acbaba2dec86a32cee5e9c9aa5
Author: Warner Losh <imp at FreeBSD.org>
AuthorDate: 2021-09-07 15:34:02 +0000
Commit: Warner Losh <imp at FreeBSD.org>
CommitDate: 2021-09-22 14:29:58 +0000
cdefs.h: Remove redundant #ifdefs
Remove redunant #ifdef __GNUC__ inside an #if defined(__GNUC__)
block. They are nops.
Sponsored by: Netflix
(cherry picked from commit 1e7b5f950b2d54ddb257d008592563c4d753aa54)
---
sys/sys/cdefs.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 85e9ea227150..30c462f6549b 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -97,16 +97,12 @@
#define __GNUCLIKE_BUILTIN_VAALIST 1
#endif
-#if defined(__GNUC__)
#define __GNUC_VA_LIST_COMPATIBILITY 1
-#endif
/*
* Compiler memory barriers, specific to gcc and clang.
*/
-#if defined(__GNUC__)
#define __compiler_membar() __asm __volatile(" " : : : "memory")
-#endif
#define __GNUCLIKE_BUILTIN_NEXT_ARG 1
#define __GNUCLIKE_MATH_BUILTIN_RELOPS
More information about the dev-commits-src-all
mailing list