]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Merge ntp-testbuild.tal1.ntfo.org:/home/localhost/u1/harlan/ntp-stable
authorHarlan Stenn <stenn@ntp.org>
Sat, 15 Jul 2023 06:44:21 +0000 (23:44 -0700)
committerHarlan Stenn <stenn@ntp.org>
Sat, 15 Jul 2023 06:44:21 +0000 (23:44 -0700)
into  ntp-testbuild.tal1.ntfo.org:/home/localhost/u1/harlan/ntp-stable-3846

bk: 64b24045UMNKAqAwOz_8PNYR3QuuZw

1  2 
ChangeLog
sntp/m4/ntp_compiler.m4

diff --cc ChangeLog
index 5837636c6a29b6fcb2f50cfded2c716af44ad8d7,0a91317de37785e3d364421251b0acbc0113d496..fb1df82ce75c880a5ed2a78bb35263a617a19656
+++ b/ChangeLog
@@@ -1,21 -1,5 +1,22 @@@
  ---
 +
+ * [Bug 3846] Use -Wno-format-truncation by default.
 +* [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>
 +* [Bug 3837] NULL pointer deref crash when ntpd deletes last interface.
 +             Reported by renmingshuai.  Correct UNLINK_EXPR_SLIST() when the
 +             list is empty. <hart@ntp.org>
 +* [Bug 3835] NTP_HARD_*FLAGS not used by libevent tearoff.
 +* [Bug 3831] pollskewlist zeroed on runtime configuration. <hart@ntp.org>
 +* [Bug 3828] BK should ignore a git repo in the same directory.
 +             <burnicki@ntp.org>
 +* [Bug 3827] Fix build in case CLOCK_HOPF6021 or CLOCK_WHARTON_400A
 +             is disabled.  <burnicki@ntp.org>
 +* [Bug 3825] Don't touch HTML files unless building inside a BK repo.
 +             Fix the script checkHtmlFileDates.  <burnicki@ntp.org>
 +* html/clockopt.html cleanup.  <stenn@ntp.org>
 +* Add DSA, DSA-SHA, and SHA to tests/libntp/digests.c. <hart@ntp.org>
  
  ---
  (4.2.8p17) 2023/06/06 Released by Harlan Stenn <stenn@ntp.org>
index 0d857bbcc062220c47d78bf5b297a65188946f14,6f603b0879ee2863427e7db9a6a6c1bdef084a71..d1c639125bb695936846d754bc0ef82331be6c7f
@@@ -104,8 -102,12 +102,11 @@@ case "$GCC" i
        ]
      )
      #
+     # $ntp_cv_gcc_Winit_self is tested later to add the 
+     # flag to CFLAGS_NTP.
+     #
      # 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 -Wno-format-security"
      AC_CACHE_CHECK(
            )
        ]
      )
 -
      case "$ntp_cv_gcc_Wno_format" in
+       no) ntp_cv_gcc_Wno_format_truncation=no
+         ;;
       yes)
-       CC_NOFORMAT="$CC_NOFORMAT -Wno-format -Wno-format-security"
+       CC_NOFORMAT="-Wno-format -Wno-format-security"
+       CFLAGS="$SAVED_CFLAGS -Wformat -Wno-format-truncation -Werror"
+       AC_CACHE_CHECK(
+               [if $CC can handle -Wformat -Wno-format-truncation], 
+               [ntp_cv_gcc_Wno_format_truncation], 
+               [AC_COMPILE_IFELSE(
+                   [AC_LANG_PROGRAM([[]], [[]])],
+                   [ntp_cv_gcc_Wno_format_truncation=yes],
+                   [ntp_cv_gcc_Wno_format_truncation=no]
+               )       ]
+       )
+       #
+       # $ntp_cv_gcc_Wno_format_truncation is tested later to add the 
+       # flag to CFLAGS.
+       #
      esac
  
 -
      CFLAGS="$SAVED_CFLAGS"
      AS_UNSET([SAVED_CFLAGS])
-     #
-     # $ntp_cv_gcc_Winit_self is tested later to add the 
-     # flag to CFLAGS_NTP.
-     #
      AC_CACHE_CHECK(
        [if linker supports omitting unused code and data],
        [ntp_cv_gc_sections_runs],