mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
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
This commit is contained in:
parent
98d59d2e0d
commit
489d7a8528
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue