makedumpfile-1.5.7: Compile warnings on archs without get_versiondep_info()

Michael Holzheu holzheu at linux.vnet.ibm.com
Fri Sep 26 01:16:19 PDT 2014


I just noticed that makedumpfile-1.5.7 produces warnings
on s390x and probably all other archs that have not defined
get_versiondep_info():

elf_info.c: In function 'get_kcore_dump_loads':
elf_info.c:856:27: warning: unused variable 'p' [-Wunused-variable]
   struct pt_load_segment *p = &pt_loads[i];
                     
      ^
In file included from makedumpfile.h:41:0,
                 from makedumpfile.c:16:
makedumpfile.c: In function 'get_page_offset':
common.h:19:15: warning: statement with no effect [-Wunused-value]
 #define TRUE  (1)
               ^
makedumpfile.h:821:31: note: in expansion of macro 'TRUE'
 #define get_versiondep_info() TRUE
                               ^
makedumpfile.c:9240:2: note: in expansion of macro 'get_versiondep_info'
  get_versiondep_info();

Best Regards
Michael




More information about the kexec mailing list