Skip to content

Instantly share code, notes, and snippets.

@aprieger-llnw
Last active August 10, 2017 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aprieger-llnw/c8047fba03cfbb54bb5a46560679471c to your computer and use it in GitHub Desktop.
Save aprieger-llnw/c8047fba03cfbb54bb5a46560679471c to your computer and use it in GitHub Desktop.
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/lib/krb5/init_creds_pw.c:314:14: warning: taking the absolute value of unsigned type 'LR_TYPE' (aka 'enum LR_TYPE') has no effect [-Wabsolute-value]
switch (abs(lr->val[i].lr_type)) {
^
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/lib/krb5/init_creds_pw.c:314:14: note: remove the call to 'abs' since unsigned values cannot be negative
switch (abs(lr->val[i].lr_type)) {
^~~
1 warning generated.
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/lib/krb5/ticket.c:783:11: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
labs(tmp_time - sec_now),
^~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/lib/krb5/init_creds_pw.c:314:14: warning: taking the absolute value of unsigned type 'LR_TYPE' (aka 'enum LR_TYPE') has no effect [-Wabsolute-value]
switch (abs(lr->val[i].lr_type)) {
^
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/lib/krb5/init_creds_pw.c:314:14: note: remove the call to 'abs' since unsigned values cannot be negative
switch (abs(lr->val[i].lr_type)) {
^~~
1 warning generated.
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/lib/krb5/ticket.c:783:11: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
labs(tmp_time - sec_now),
^~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/lib/krb5/init_creds_pw.c:314:14: warning: taking the absolute value of unsigned type 'LR_TYPE' (aka 'enum LR_TYPE') has no effect [-Wabsolute-value]
switch (abs(lr->val[i].lr_type)) {
^
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/lib/krb5/init_cre\ds_pw.c:314:14: note: remove the call to 'abs' since unsigned values cannot be n\
egative
switch (abs(lr->val[i].lr_type)) {
^~~
1 warning generated.
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/lib/krb5/ticket.c:783:11: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
labs(tmp_time - sec_now),
^~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment