The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=fd5882e1f2cab4c3508c3041dcf84864076055ed

commit fd5882e1f2cab4c3508c3041dcf84864076055ed
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2022-11-22 19:12:06 +0000
Commit:     John Baldwin <j...@freebsd.org>
CommitDate: 2022-11-22 19:12:06 +0000

    tftpd: Disable -Wformat-nonliteral for GCC.
    
    GCC warns about the non-literal format string passed to strftime().  A
    warning here seems a bit odd as strftime() does not take varargs so
    there is not a risk of missing args.
---
 libexec/tftpd/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libexec/tftpd/Makefile b/libexec/tftpd/Makefile
index d94df7c27074..be0457828cf3 100644
--- a/libexec/tftpd/Makefile
+++ b/libexec/tftpd/Makefile
@@ -13,6 +13,8 @@ CFLAGS+=      -DLIBWRAP
 LIBADD=        wrap
 .endif
 
+CWARNFLAGS.gcc+=       -Wno-format-nonliteral
+
 HAS_TESTS=
 SUBDIR.${MK_TESTS}+= tests
 

Reply via email to