warning when compiling xen_hyper_command.c with "make warn" and gcc 4.1.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
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
 
 

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux