Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signedness problems with libfreeipmi #860

Closed
jimklimov opened this issue Nov 8, 2020 · 1 comment
Closed

Signedness problems with libfreeipmi #860

jimklimov opened this issue Nov 8, 2020 · 1 comment

Comments

@jimklimov
Copy link
Member

According to recent builds like the cases linked below, it may be that different distributions have different data types for fields in libfreeipmi structures - so in some builds but far from all, mismatches against variable types used by NUT are reported.

../../drivers/nut-libfreeipmi.c:380:4: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
../../drivers/nut-libfreeipmi.c:381:4: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
../../drivers/nut-libfreeipmi.c:382:4: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
../../drivers/nut-libfreeipmi.c:383:4: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
../../drivers/nut-libfreeipmi.c:397:4: warning: pointer targets in passing argument 8 of 'ipmi_fru_parse_multirecord_power_supply_information' differ in signedness [-Wpointer-sign]
../../drivers/nut-libfreeipmi.c:397:4: warning: pointer targets in passing argument 9 of 'ipmi_fru_parse_multirecord_power_supply_information' differ in signedness [-Wpointer-sign]
../../drivers/nut-libfreeipmi.c:397:4: warning: pointer targets in passing argument 10 of 'ipmi_fru_parse_multirecord_power_supply_information' differ in signedness [-Wpointer-sign]
../../drivers/nut-libfreeipmi.c:397:4: warning: pointer targets in passing argument 11 of 'ipmi_fru_parse_multirecord_power_supply_information' differ in signedness [-Wpointer-sign]
@jimklimov
Copy link
Member Author

jimklimov commented Nov 14, 2021

Should be fixed by #1181 and #1179

Dup of #1175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant