From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2108 invoked by alias); 22 Jun 2009 16:07:56 -0000 Received: (qmail 2094 invoked by uid 22791); 22 Jun 2009 16:07:55 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Jun 2009 16:07:50 +0000 Received: from wpaz29.hot.corp.google.com (wpaz29.hot.corp.google.com [172.24.198.93]) by smtp-out.google.com with ESMTP id n5MG7mpf016604 for ; Mon, 22 Jun 2009 09:07:48 -0700 Received: from qyk15 (qyk15.prod.google.com [10.241.83.143]) by wpaz29.hot.corp.google.com with ESMTP id n5MG5Q92000526 for ; Mon, 22 Jun 2009 09:07:46 -0700 Received: by qyk15 with SMTP id 15so4135933qyk.8 for ; Mon, 22 Jun 2009 09:07:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.85.14 with SMTP id m14mr1157337qcl.64.1245686865713; Mon, 22 Jun 2009 09:07:45 -0700 (PDT) In-Reply-To: <3a665c760906220630g24fa38ema81029cc9c52fb43@mail.gmail.com> References: <3a665c760906220630g24fa38ema81029cc9c52fb43@mail.gmail.com> Date: Mon, 22 Jun 2009 16:07:00 -0000 Message-ID: <8ac60eac0906220907t74f83d09t3d91be2f1880ee42@mail.gmail.com> Subject: Re: Qustion about compile gdb-6.71. and gdb-6.8 error From: Paul Pluzhnikov To: loody Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00210.txt.bz2 On Mon, Jun 22, 2009 at 6:30 AM, loody wrote: > I try to compile gdb but I get error message below: > linux-nat.c:2834: error: ignoring return value of \u2018fgets\u2019, > declared with attribute warn_unused_result Current GDB sources do not contain fgets() call at that line. > I know this error comes from my gcc waring option -Werror like below: ... > Why we add -Werror here Because it helps catch bugs. > how can we compile it successfully except removing this option? If you don't plan on modifying GDB sources, just remove the -Werror. If you do, please use current sources from CVS Head. Cheers, -- Paul Pluzhnikov