This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: nlmconv.c - warning: value computed is not used
- From: Alan Modra <amodra at gmail dot com>
- To: Bernd Jendrissek <bernd dot jendrissek at gmail dot com>
- Cc: binutils <binutils at sourceware dot org>
- Date: Wed, 8 Dec 2010 15:52:06 +1030
- Subject: Re: nlmconv.c - warning: value computed is not used
- References: <AANLkTimBKCQyySsc9tFYcQZ6UrsnbAvZKCjth-rYaNuz@mail.gmail.com>
On Wed, Dec 08, 2010 at 01:03:55AM +0200, Bernd Jendrissek wrote:
> In message <477B8342.60604@redhat.com> Nick Clifton wrote:
> >> .././binutils/nlmconv.c: In function 'main':
> >> .././binutils/nlmconv.c:1081: warning: value computed is not used
> >>
> >> but is it safe to ignore this warning?
> >
> >Possibly, but it is hard to be sure without being able to reproduce the bug.
> >(I tried with my local sources, but I did not see this warning). What does
> >line 1081 in nlmconv.c in your sources look like ? Is it this:
> >
> > strncpy (nlm_variable_header (outbfd)->oldThreadName, " LONG",
> > NLM_OLD_THREAD_NAME_LENGTH);
> >
> >[snip other alternative]
>
> This is it in my case.
I wonder do you have a fancy macro for strncpy on your system? What
does the preprocessor output look like here?
--
Alan Modra
Australia Development Lab, IBM