From nobody Wed Nov 30 19:00:28 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NMpSD2hl8z4hb9H; Wed, 30 Nov 2022 19:00:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NMpSD273dz4JYN; Wed, 30 Nov 2022 19:00:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669834828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1w9Zr7YWsaaqSwPjzgJtzPQ5Auw/NTntd+T82/0IdbU=; b=A/JJvcKMyl+nxLXr0zCrXd0myCNnRyfzvYaIZnUTsERbGzLCVzPyrteqX7n8+LlF1gI05o M9vbzr8BFMajfylwymZOGSN1OqzBto6TKF+PL1Olk+1Z3o4NepLBhHdwyMYiTrjr5Vcd7i SfmfXvJdVDeeUb2CMu0xMJuOfcQQCvHSkXc1O6FEqyFGQxWTdUbWpwSK6DFvSf197qFYhv /7TTfn92kr5kqn5ziHnfspVqcbJm1x0XygwRCKHfBKFyADbrcuwd0nQP/glpFbcS+fivKQ 6AwNmUQoGQasTxdT3bjWEFxDV9wN6oLTPZGoEas3CP0HLxe3sBHk0eXk7iI1dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669834828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1w9Zr7YWsaaqSwPjzgJtzPQ5Auw/NTntd+T82/0IdbU=; b=qM5xAuJ9X9IrhcF70OR5EtR6LvtsyT4ywI7MwWOW/PtSEjUjekEqZKGtz/65TiBcjlxq8r Jhfj7XMDGRKqDhFLbrhAee3oxkFZtNiBLLSyLMjp91D/oYoMO1pA6oEmc0CAaUDlX4h4yI 7Yx7HQomUGsDYXXzeeVvo0gx0ma5fBDiiWcW5tPzpw99cn1nL20BdE2Wj+snaRG9DNe/Td lTx2PVkgAX60PQnmqnM78XR5kuAsjtPvnII1dMJvYZwYXTpzmI5Li1lD9pwbndZdmJSr/7 SwUrA2indCez5DHOVEYdB5ylKJQLDHM0oAO9tZeKaOnau/AbME0euP7l+hzWLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669834828; a=rsa-sha256; cv=none; b=NBknCygfd0We+I8fPr3uzY58LLbfcyHmXMAB7oAmetNcnEgFpGvB9RWjfsPVZaozc4qrSi KS4/CxNnwTRDRn6uNMQhtHhOa6as5qCq2B72816dAMCKbr+lIJ10LHCpUInn5e7/pEr9f0 dcbuC/kgkMMhmV3mIqpJnhIzStkoqVdXl6Pyi8/8RqBq0mjowlg7jekw9XDii6wC7YaAQE BLrF/Ny8PQ+oZjugnHur6QuZJ/dFyis0NAP8rMqqLuQb5mkWVqqYp8SI5/n6PSeOpZ4SAF eOe3dn1v5xkmpMM38HI2mN810N/2Lpelam40ccWtOFCx3ugBe7AEoISJL1THRg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NMpSD189Cz16f7; Wed, 30 Nov 2022 19:00:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AUJ0Sp7012810; Wed, 30 Nov 2022 19:00:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AUJ0S5B012809; Wed, 30 Nov 2022 19:00:28 GMT (envelope-from git) Date: Wed, 30 Nov 2022 19:00:28 GMT Message-Id: <202211301900.2AUJ0S5B012809@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: a8f92d247e77 - main - Enable -Wdate-time warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a8f92d247e77f97f70aada494210bf04f1f7ef39 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=a8f92d247e77f97f70aada494210bf04f1f7ef39 commit a8f92d247e77f97f70aada494210bf04f1f7ef39 Author: Ed Maste AuthorDate: 2022-02-09 22:10:03 +0000 Commit: Ed Maste CommitDate: 2022-11-30 18:59:57 +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__. Provide NO_WDATE_TIME for ports or 3rd party software to opt out. This is a recommit of 489d7a8528ca, which was reverted (by baf8cbcd97a6) due to ports build failures. PR: 267902 [exp-run] Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29580 --- share/mk/bsd.sys.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 02a27e0f9464..18aecfbcc110 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