Date: Sat, 2 Oct 2021 16:43:49 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e6145db24402 - stable/12 - cdefs.h: Remove redundant #ifdefs Message-ID: <202110021643.192GhnWF008720@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e6145db24402b9791091fa2cc76e161cbb311699 commit e6145db24402b9791091fa2cc76e161cbb311699 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-09-07 15:34:02 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-10-02 16:43:21 +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 a5e8abc173bd..edb491d80b86 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -99,16 +99,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 #ifndef __INTEL_COMPILER #define __GNUCLIKE_BUILTIN_NEXT_ARG 1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110021643.192GhnWF008720>