From patchwork Sun Feb 8 09:00:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonhard Holz X-Patchwork-Id: 4966 Received: (qmail 4505 invoked by alias); 8 Feb 2015 09:00:51 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 4423 invoked by uid 89); 8 Feb 2015 09:00:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mout.web.de Message-ID: <54D725BC.8050604@web.de> Date: Sun, 08 Feb 2015 10:00:44 +0100 From: Leonhard Holz User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: libc-alpha@sourceware.org Subject: [PATCH] Fix problem with GCC 4.9.1 in string/tester.c X-UI-Out-Filterresults: notjunk:1; tester.c does not compile on my Xubuntu 14.10 with GCC Ubuntu 4.9.1-16ubuntu6. This patch fixes it. Maybe the Ubuntu folks did backport something. diff --git a/string/tester.c b/string/tester.c index f957ed2..445b427 100644 --- a/string/tester.c +++ b/string/tester.c @@ -1305,9 +1305,9 @@ test_memset (void) equal(one, "axxxefgh", 2); /* Basic test. */ DIAG_PUSH_NEEDS_COMMENT; -#if __GNUC_PREREQ (5, 0) - /* GCC 5.0 warns about a zero-length memset because the arguments to memset - may be in the wrong order. But we really want to test this. */ +#if __GNUC_PREREQ (5, 0) || __GNUC_PREREQ (4, 9) + /* GCC 5.0 / 4.9 warns about a zero-length memset because the arguments to + memset may be in the wrong order. But we really want to test this. */ DIAG_IGNORE_NEEDS_COMMENT (5.0, "-Wmemset-transposed-args") #endif (void) memset(one+2, 'y', 0);