Date: Tue, 22 Nov 2022 19:12:15 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: fd5882e1f2ca - main - tftpd: Disable -Wformat-nonliteral for GCC. Message-ID: <202211221912.2AMJCFuZ081903@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=fd5882e1f2cab4c3508c3041dcf84864076055ed commit fd5882e1f2cab4c3508c3041dcf84864076055ed Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-11-22 19:12:06 +0000 Commit: John Baldwin <jhb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211221912.2AMJCFuZ081903>