fundamental: unify gcc warning pragmas at one place

This also drops HAVE_WSTRINGOP_TRUNCATION as the corresponding option
was introduced in GCC 8, and our baseline is GCC 8.4.
This commit is contained in:
Lennart Poettering
2025-01-17 04:08:58 +09:00
committed by Yu Watanabe
parent 0ec19b311b
commit 1d5f0a88e0
5 changed files with 17 additions and 26 deletions
-9
View File
@@ -30,15 +30,6 @@
#define _function_no_sanitize_float_cast_overflow_
#endif
#if HAVE_WSTRINGOP_TRUNCATION
# define DISABLE_WARNING_STRINGOP_TRUNCATION \
_Pragma("GCC diagnostic push"); \
_Pragma("GCC diagnostic ignored \"-Wstringop-truncation\"")
#else
# define DISABLE_WARNING_STRINGOP_TRUNCATION \
_Pragma("GCC diagnostic push")
#endif
/* test harness */
#define EXIT_TEST_SKIP 77