FreeBSD Bugzilla – Attachment 238228 Details for
Bug 267902
[exp-run] with -Wdate-time warning flag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch adding -Wdate-time
Wdate-time.patch (text/plain), 1.02 KB, created by
Ed Maste
on 2022-11-21 19:43:16 UTC
(
hide
)
Description:
patch adding -Wdate-time
Filename:
MIME Type:
Creator:
Ed Maste
Created:
2022-11-21 19:43:16 UTC
Size:
1.02 KB
patch
obsolete
>commit 44d26f78868d2a4ab27cd12e3e63427371136987 >Author: Ed Maste <emaste@FreeBSD.org> >Date: Wed Feb 9 17:10:03 2022 -0500 > > 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__. > > Allow NO_WDATE_TIME for ports or 3rd party software to opt out. > > Reviewed by: markj > Sponsored by: The FreeBSD Foundation > Differential Revision: https://reviews.freebsd.org/D29580 > >diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk >index f6303d7d06d7..ff862ca724e5 100644 >--- a/share/mk/bsd.sys.mk >+++ b/share/mk/bsd.sys.mk >@@ -75,6 +75,9 @@ CWARNFLAGS.clang+= -Wthread-safety > CWARNFLAGS+= -Wno-uninitialized > .endif # WARNS >=2 && WARNS <= 4 > CWARNFLAGS+= -Wno-pointer-sign >+.if !defined(NO_WDATE_TIME) >+CWARNFLAGS+= -Wdate-time >+.endif # NO_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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 267902
: 238228