+---
+* [Bug 3841] 4.2.8p17 build break w/ gcc 12 -Wformat-security without -Wformat
+ Need to remove --Wformat-security when removing -Wformat to
+ silence numerous libopts warnings. <hart@ntp.org>
+
---
(4.2.8p17) 2023/06/06 Released by Harlan Stenn <stenn@ntp.org>
# the date YYYYMMDD optionally with -HHMM if there is more than one
# bump in a day.
-ntp_configure_cache_version=20230326
+ntp_configure_cache_version=20230625
# When the cache version of config.cache and configure do not
# match, NTP_CACHEVERSION will flush the cache.
# the date YYYYMMDD optionally with -HHMM if there is more than one
# bump in a day.
-sntp_configure_cache_version=20120806
+sntp_configure_cache_version=20230625
# When the version of config.cache and configure do not
# match, NTP_CACHEVERSION will flush the cache.
#
# libopts specifically builds a string with embedded NULs.
# This causes a bunch of distracting warnings due to -Wformat.
- # Let's see if we can figure out how to disable these.
#
- CFLAGS="$SAVED_CFLAGS -Wno-format"
+ CFLAGS="$SAVED_CFLAGS -Wno-format -Wno-format-security"
AC_CACHE_CHECK(
- [if $CC can handle -Wno-format],
+ [if $CC can handle -Wno-format -Wno-format-security],
[ntp_cv_gcc_Wno_format],
[
AC_COMPILE_IFELSE(
)
]
)
-
case "$ntp_cv_gcc_Wno_format" in
yes)
- CC_NOFORMAT="$CC_NOFORMAT -Wno-format"
- ;;
- no)
- ;;
+ CC_NOFORMAT="$CC_NOFORMAT -Wno-format -Wno-format-security"
esac
CFLAGS="$SAVED_CFLAGS"