From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13441 invoked by alias); 22 Jun 2009 13:30:58 -0000 Received: (qmail 13431 invoked by uid 22791); 22 Jun 2009 13:30: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 mail-pz0-f196.google.com (HELO mail-pz0-f196.google.com) (209.85.222.196) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Jun 2009 13:30:51 +0000 Received: by pzk34 with SMTP id 34so3234280pzk.12 for ; Mon, 22 Jun 2009 06:30:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.171.13 with SMTP id t13mr2630841wfe.229.1245677449745; Mon, 22 Jun 2009 06:30:49 -0700 (PDT) Date: Mon, 22 Jun 2009 13:30:00 -0000 Message-ID: <3a665c760906220630g24fa38ema81029cc9c52fb43@mail.gmail.com> Subject: Qustion about compile gdb-6.71. and gdb-6.8 error From: loody To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00209.txt.bz2 Dear all: 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 I know this error comes from my gcc waring option -Werror like below: gcc -c -g -O2 -I. -I.././gdb -I.././gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I.././gdb/../include/opcode -I.././gdb/../readline/.. -I../bfd -I.././gdb/../bfd -I.././gdb/../include -DMI_OUT=1 -DTUI=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror linux-nat.c Why we add -Werror here and how can we compile it successfully except removing this option? appreciate your help, miloody