[Eisfair] lm-sensors "IPMI BMC KCS"

Uwe Kunze u.kunze.sdh at t-online.de
Sa Dez 2 22:39:00 CET 2017


 > Hast Du beim Kompilieren auch so eine Riesenmenge Warnings bekommen?
Ja, Warnungen und Hinweise (Auszug daraus).

 > ipmi_sdr.c: In function 'ipmi_sdr_end':
 > ipmi_sdr.c:3079:32: warning: unused parameter 'intf' [-Wunused-parameter]
 >  ipmi_sdr_end(struct ipmi_intf *intf, struct ipmi_sdr_iterator *itr)
 >                                 ^
 > ipmi_sdr.c: In function 'ipmi_sdr_list_cache_fromfile':
 > ipmi_sdr.c:3925:48: warning: unused parameter 'intf' [-Wunused-parameter]
 >  ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile)
 >                                                 ^
 > In file included from ../include/ipmitool/ipmi.h:41:0,
 >                  from ipmi_sdr.c:45:
 > ipmi_sdr.c: In function 'ipmi_sdr_get_info':
 > ../include/ipmitool/helper.h:116:28: warning: comparison between 
signed and unsigned integer expressions [-Wsign-compare]
 >  # define __min(a, b)  ((a) < (b) ? (a) : (b))
 >                             ^
 > ipmi_sdr.c:4207:9: note: in expansion of macro '__min'
 >          __min(sizeof (struct get_sdr_repository_info_rsp),
 >          ^
 > ../include/ipmitool/helper.h:116:40: warning: signed and unsigned 
type in conditional expression [-Wsign-compare]
 >  # define __min(a, b)  ((a) < (b) ? (a) : (b))
 >                                         ^
 > ipmi_sdr.c:4207:9: note: in expansion of macro '__min'
 >          __min(sizeof (struct get_sdr_repository_info_rsp),
 >          ^
 > ipmi_sdr.c: In function 'ipmi_sdr_print_type':
 > ../include/ipmitool/helper.h:128:25: warning: ISO C forbids 
braced-groups within expressions [-Wpedantic]
 >  # define __maxlen(a, b) ({ int x=strlen(a); int y=strlen(b); (x > y) 
? x : y;})
 >                          ^
 > ipmi_sdr.c:4477:6: note: in expansion of macro '__maxlen'
 >       __maxlen(type,
 >       ^
 > ipmi_sdr.c: In function 'ipmi_sdr_print_entity':
 > ../include/ipmitool/helper.h:128:25: warning: ISO C forbids 
braced-groups within expressions [-Wpedantic]
 >  # define __maxlen(a, b) ({ int x=strlen(a); int y=strlen(b); (x > y) 
? x : y;})
 >                          ^
 > ipmi_sdr.c:4542:7: note: in expansion of macro '__maxlen'
 >        __maxlen(entitystr, entity_id_vals[i].str)) == 0) {


Aber es läuft, wie Kay eben bestätigt hat.
Gruß Uwe


Mehr Informationen über die Mailingliste Eisfair