Date: Wed, 9 Feb 2022 22:10:11 GMT From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 489d7a8528ca - main - Enable -Wdate-time warning Message-ID: <202202092210.219MABeT000307@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=489d7a8528cae1adb7192c2563028e2d028c354b commit 489d7a8528cae1adb7192c2563028e2d028c354b Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-02-09 22:10:03 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-02-09 22:10:03 +0000 Enable -Wdate-time warning This produces an "expansion of date or time macro is not reproducible" warning or error upon use of __DATE__ or __TIME__. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29580 --- share/mk/bsd.sys.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 1673ae8c449a..694cc66c3f18 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -75,6 +75,7 @@ CWARNFLAGS.clang+= -Wthread-safety CWARNFLAGS+= -Wno-uninitialized .endif # WARNS >=2 && WARNS <= 4 CWARNFLAGS+= -Wno-pointer-sign +CWARNFLAGS+= -Wdate-time # Clang has more warnings enabled by default, and when using -Wall, so if WARNS # is set to low values, these have to be disabled explicitly. .if ${WARNS} <= 6
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202092210.219MABeT000307>