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

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

 



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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux