From: loody <miloody@gmail.com>
To: gdb@sourceware.org
Subject: Qustion about compile gdb-6.71. and gdb-6.8 error
Date: Mon, 22 Jun 2009 13:30:00 -0000 [thread overview]
Message-ID: <3a665c760906220630g24fa38ema81029cc9c52fb43@mail.gmail.com> (raw)
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
next reply other threads:[~2009-06-22 13:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 13:30 loody [this message]
2009-06-22 16:07 ` Paul Pluzhnikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3a665c760906220630g24fa38ema81029cc9c52fb43@mail.gmail.com \
--to=miloody@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox