[Crash-utility] warning when compiling xen_hyper_command.c with "make warn" and gcc 4.1.1
Dave Anderson
anderson at redhat.com
Tue Jan 2 22:01:45 UTC 2007
Hello Oda-san,
I just noticed this warning message when compiling xen_hyper_command.c
with gcc 4.1.1:
$ make warn
...
cc -c -g -DX86 -D_FILE_OFFSET_BITS=64 xen_hyper_command.c -Wall -Wstrict-prototypes -Wmissing-prototypes
xen_hyper_command.c: In function show_xen_hyper_dumpinfo:
xen_hyper_command.c:426: warning: value computed is not used
...
$
Here is the code it is referring to:
424 addr = (ulong)note_buf +
425 XEN_HYPER_OFFSET(ELF_Prstatus_pr_utime);
426 for (i = 0; i < 4; i++, addr+XEN_HYPER_SIZE(ELF_Timeval)) {
I'm presuming that it should be: "addr+=XEN_HYPER_SIZE(ELF_Timeval)?
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20070102/aba6d825/attachment.htm>
More information about the Crash-utility
mailing list