summaryrefslogtreecommitdiffstats
path: root/include/internal/e_os.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2023-09-13 10:31:46 +0100
committerPauli <pauli@openssl.org>2023-09-15 09:20:05 +1000
commitfc785a554cc37dfa94710b28ced45b03006f0300 (patch)
treecfe2ab6acb42113b754686c606dbc28c42a215d7 /include/internal/e_os.h
parent46b43c9f98771139735656e541c8f4c8018c2667 (diff)
Remove use of _Static_assert
We had some use of the C11 _Static_assert feature which can cause some problems on some platforms. Everywhere we were using it, it is not really required so remove it. Fixes #22017 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22091)
Diffstat (limited to 'include/internal/e_os.h')
-rw-r--r--include/internal/e_os.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/internal/e_os.h b/include/internal/e_os.h
index d0e903f653..d1ed62e890 100644
--- a/include/internal/e_os.h
+++ b/include/internal/e_os.h
@@ -22,15 +22,6 @@
* outside; this file e_os.h is not part of the exported interface.
*/
-/* ossl_static_assert_type_eq: gcc-only variable type static assertion */
-# if defined(__GNUC__) && !defined(__clang__)
-# define ossl_static_assert_type_eq(type, x) \
- _Static_assert((__builtin_types_compatible_p(type, __typeof__(x))), \
- #x " type check failed, expected: " #type)
-# else
-# define ossl_static_assert_type_eq(type, x)
-# endif
-
# if defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI)
# define NO_CHMOD
# define NO_SYSLOG