git: 489d7a8528ca - main - Enable -Wdate-time warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Feb 2022 22:10:11 UTC
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