From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 900 invoked from network); 10 Jul 2021 03:25:40 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 10 Jul 2021 03:25:40 -0000 Received: (qmail 3735 invoked by uid 550); 10 Jul 2021 03:25:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 3640 invoked from network); 10 Jul 2021 03:25:36 -0000 X-Virus-Scanned: Debian amavisd-new at disroot.org From: =?UTF-8?q?=C3=89rico=20Nogueira?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1625887524; bh=cZ/d0I4PFT5+yPxHzovlPW+7Wu2XzjRYBmqD9izO5OU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cpfQonA7POCM+BDOdc7RDFCHzV4zCoPGP0stEW4+lTLP5VYIWU9KvJZZNzKJlvIs4 GRlmbYvLeQnlS4JGRI99zKKEG3YfkiA8QoGteODLA9hPm+79wVEa2+3ky4Q5N+6Ncc TFxJ9KHBh1Hu+CX6LBctCpm+o69OEXOYTK/dRJs7BzVAIh9SPFrTWVBFM7P/QV76ec Yh/9W7S5M5dPe0UdRVpGJZ/wnT2/EyIEiL+Aj4FGU5Z6FTcgrKfgrq+wfRyUehU+PO +EBAvFBpBdUaGvRGXVOT6YlqduqEdptTnoo+nZjgOpFDuN5S0ZmNlhbYb3uMKR7Cyk SWahKejWGBUjg== To: musl@lists.openwall.com Cc: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Sat, 10 Jul 2021 00:25:00 -0300 Message-Id: <20210710032500.9249-2-ericonr@disroot.org> In-Reply-To: <20210710032500.9249-1-ericonr@disroot.org> References: <20210710032500.9249-1-ericonr@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH 2/2] add -Wtype-limits to enabled warning list this warning catches conditionals which are never true, such as checking if an unsigned value is smaller than zero. this leads to two warnings in the getgr_a.c and getpw_a.c files, which assume that the underlying type for gid_t and uid_t might still change. --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index a5231a0e..b7beaeab 100755 --- a/configure +++ b/configure @@ -546,6 +546,7 @@ tryflag CFLAGS_AUTO -Winit-self tryflag CFLAGS_AUTO -Wreturn-type tryflag CFLAGS_AUTO -Wsequence-point tryflag CFLAGS_AUTO -Wstrict-aliasing +tryflag CFLAGS_AUTO -Wtype-limits tryflag CFLAGS_AUTO -Wunused-function tryflag CFLAGS_AUTO -Wunused-label tryflag CFLAGS_AUTO -Wunused-variable -- 2.32.0