Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: loody <miloody@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Qustion about compile gdb-6.71. and gdb-6.8 error
Date: Mon, 22 Jun 2009 16:07:00 -0000	[thread overview]
Message-ID: <8ac60eac0906220907t74f83d09t3d91be2f1880ee42@mail.gmail.com> (raw)
In-Reply-To: <3a665c760906220630g24fa38ema81029cc9c52fb43@mail.gmail.com>

On Mon, Jun 22, 2009 at 6:30 AM, loody<miloody@gmail.com> 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


      reply	other threads:[~2009-06-22 16:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-22 13:30 loody
2009-06-22 16:07 ` Paul Pluzhnikov [this message]

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=8ac60eac0906220907t74f83d09t3d91be2f1880ee42@mail.gmail.com \
    --to=ppluzhnikov@google.com \
    --cc=gdb@sourceware.org \
    --cc=miloody@gmail.com \
    /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