Code changes to fix warnings during build time for the application in the kerberos5/lib/libkrb5 folder
Diff Detail
Diff Detail
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 9889 Build 10324: arc lint + arc unit
Event Timeline
Comment Actions
Changelog:
Pre-fix warnings located at: https://gist.github.com/aprieger-llnw/c8047fba03cfbb54bb5a46560679471c
- crypto/heimdal/lib/krb5/init_creds_pw.c
- warning: taking the absolute value of unsigned type 'LR_TYPE' (aka 'enum LR_TYPE') has no effect [-Wabsolute-value]
- fix: added the signed modifier to change the unsigned parameter in the switch to allow it to be taken the absolute value of on line 314
- note: simply removing the absolute value function causes more warnings calling for the unhandled enumeration values for the switch
- warning: taking the absolute value of unsigned type 'LR_TYPE' (aka 'enum LR_TYPE') has no effect [-Wabsolute-value]
- crypto/heimdal/lib/krb5/ticket.c
- warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
- fix: added the (int) explicit modifier to the parameter on line 783
- warning: format specifies type 'int' but the argument has type 'long' [-Wformat]