From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1211) id 71E093858420; Mon, 1 Jan 2024 18:56:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71E093858420 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704135372; bh=kM9uGiZDlOnWMpYosdepZuBwf/YDG2nw0VOVxiFlEpk=; h=From:To:Subject:Date:From; b=ZaOtllGQo2yGstR/Y03uJnjtGvDdzTYQWo/PDUcq/+jOmThCNzBT2yBfFTDs1fT/t aOlW64k7avV+hmcIkLSKSfM6ZR//qnrMp6f5sOdyEW7rtsbs/eBGutTlOjP55eKc2m eT71yDOqUNJ31bTPqYF50znsDfDdRb+Q9rncQ+iM= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Paul Eggert To: glibc-cvs@sourceware.org Subject: [glibc] Omit regex.c pragmas no longer needed X-Act-Checkin: glibc X-Git-Author: Paul Eggert X-Git-Refname: refs/heads/master X-Git-Oldrev: 1059defeee95e28c65b266a55eba6d47d852026b X-Git-Newrev: 540b740c8a23480d6360a437c9f8b5949f05e9fe Message-Id: <20240101185612.71E093858420@sourceware.org> Date: Mon, 1 Jan 2024 18:56:12 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=540b740c8a23480d6360a437c9f8b5949f05e9fe commit 540b740c8a23480d6360a437c9f8b5949f05e9fe Author: Paul Eggert Date: Mon Jan 1 10:40:37 2024 -0800 Omit regex.c pragmas no longer needed * posix/regex.c: [!_LIBC && __GNUC_PREREQ (4, 3)]: Omit GCC pragmas no longer needed when this file is used as part of Gnulib. -Wold-style-definition no longer needs to be ignored because the regex code no longer uses old style definitions. -Wtype-limits no longer needs to be ignored because Gnulib already arranges for it to be ignored in the C compiler flags. This patch is taken from Gnulib. Diff: --- posix/regex.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/posix/regex.c b/posix/regex.c index 08031cecc0..4b1a6ed68e 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -26,10 +26,6 @@ # pragma GCC diagnostic ignored "-Wsuggest-attribute=pure" # pragma GCC diagnostic ignored "-Wvla" # endif -# if __GNUC_PREREQ (4, 3) -# pragma GCC diagnostic ignored "-Wold-style-definition" -# pragma GCC diagnostic ignored "-Wtype-limits" -# endif #endif /* Make sure no one compiles this code with a C++ compiler. */