From nobody Wed Feb 09 22:10:11 2022 X-Original-To: dev-commits-src-all@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 90D7519A36EC; Wed, 9 Feb 2022 22:10:11 +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 4JvDZq3fNFz3KmS; Wed, 9 Feb 2022 22:10:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644444611; 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=Ev8F3uKGHwPhYA9TEhYXeDip1QTtN0/Tl2gw8dXeWMc=; b=McEBNUa6/SNxwiHKsmfk75nSl/r6f1y00n14bE7gfdTx68eVWluiviohHC9vZv9AMkw+WN mevfHcEsoGNU7tPjE7E3PlmOGcRUc6cQrF9iN4LlttqADArwSqMLhpTG0ePaSaIA/z2aIl wOTUtL1knyOatyAJDgPQNKgJmwaLpmnbSPPOOk9iZ4NWEIJjpN5r5e/84uNpWv0k4Wu3Fr aVujPSnnNQDuEkuoQD/iC3ZSPzb6rJIM2t2xNPeezcE4d4pB25KjGo5Jih4abF7EVqb5M7 9c+n+QFP9GXkvJIW7oJuJvZzIG0+rxgyb345m7sDBI7ZC3uMNmi3fobNzKvDhw== 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 5D6D714F69; Wed, 9 Feb 2022 22:10:11 +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 219MABeo000313; Wed, 9 Feb 2022 22:10:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 219MABeT000307; Wed, 9 Feb 2022 22:10:11 GMT (envelope-from git) Date: Wed, 9 Feb 2022 22:10:11 GMT Message-Id: <202202092210.219MABeT000307@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: 489d7a8528ca - main - Enable -Wdate-time warning List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 489d7a8528cae1adb7192c2563028e2d028c354b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644444611; 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=Ev8F3uKGHwPhYA9TEhYXeDip1QTtN0/Tl2gw8dXeWMc=; b=QcG/4YpSU1EwjWStuXjw6xlNByFGydz4G1FA+KvQZQF5JVn7kaNZKZwUS3c9fG0+F6t8fM WQ9Q+fscgSUjyERHvwXGNy7VXUAicmgUKLwgdhZpB7FM9PBfSH4/ZfwhO8gaUQn1rFdwwW DiNgHDlht9vGEh7C1aOdVP68r0TUXfHQMw8WK8H5/jallnQ6WYMqxp4qUozs3rU3JGCOvR 2Br+kSbkPIvrDA959duNwgUfwvR8Na1F1bUTpmOdVXmt/Ew4oZF1CKRqE461uaB2AA9NhU Y8eS73FpQCYTriHp8cmD7q7EZyGuCI6MCMuMolX8tW/Gy5nmzc/RB9tKV0UWIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644444611; a=rsa-sha256; cv=none; b=uKgk4NVcE2tclJCtExXXgLRHUEEwfpKN8o5rYPFZb6NWL632Lb0oxl8tBPXUZ/cb4bvpLW DzJ0AJVcaTwy8mhnnApoh18eNFWjJTDxgOwpwHgdKXg54EpW+DdPr4kGbxMw7FRGTG2IHf 86kr15JLc6xicpgSAPxfWvoPAD1PBTXRO1Sv+tao5cAFN2l5TzVte73N+8gFdpyQHG+rsP Rrqt3Ufc1iSGhR2HOm/2NxadEa2jCYLqK/oZCUbOtOIMOE9t/7giYrIlULraBmz2/tZvQj QVWuSDghViBG+DjmX3xE8h2+o62PM2uC2WRguVVs1giFhRVSh056mxad+lO8MA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=489d7a8528cae1adb7192c2563028e2d028c354b commit 489d7a8528cae1adb7192c2563028e2d028c354b Author: Ed Maste AuthorDate: 2022-02-09 22:10:03 +0000 Commit: Ed Maste 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