This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: binutils-2.18 - nlmconf.c - warning: value computed is not used
- From: Nick Clifton <nickc at redhat dot com>
- To: Poor Yorick <org dot sourceware dot binutils at pooryorick dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 02 Jan 2008 12:27:46 +0000
- Subject: Re: binutils-2.18 - nlmconf.c - warning: value computed is not used
- References: <20080101201814.12328.qmail@station198.com>
Hi
Is this with the 2.18 release sources or the current mainline development sources ?
Which target were you building for ?
Which compiler were you using ?
.././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);
If so then does changing it to this make the problem go away ?
(void) strncpy (nlm_variable_header (outbfd)->oldThreadName, " LONG",
NLM_OLD_THREAD_NAME_LENGTH);
Cheers
Nick