From patchwork Wed Nov 26 13:32:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 3942 Received: (qmail 23281 invoked by alias); 26 Nov 2014 13:32:24 -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 23272 invoked by uid 89); 26 Nov 2014 13:32:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Wed, 26 Nov 2014 13:32:18 +0000 From: Joseph Myers To: Subject: Fix elf/tst-unique4lib.cc warning Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 This patch fixes a warning "tst-unique4lib.cc:17:12: warning: 'b' defined but not used [-Wunused-variable]". I'm not sure exactly what aspects of the test are or are not significant for the issue it is testing for; the patch makes the minimal change of marking the variable with __attribute__ ((used)). Tested for x86_64. 2014-11-26 Joseph Myers * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)). diff --git a/elf/tst-unique4lib.cc b/elf/tst-unique4lib.cc index c9fdf9c..20a10e9 100644 --- a/elf/tst-unique4lib.cc +++ b/elf/tst-unique4lib.cc @@ -14,4 +14,4 @@ static int a[24] = S<23>::i, S<24>::i }; -static int b = S<1>::j; +static int b __attribute__ ((used)) = S<1>::j;