Snippets for adjtimex 1.29 from Alpine x86
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-x86/testing/adjtimex/adjtimex-1.29-r0.log.
-
adjtimex.c:923:36: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=] 923 | printf ("CMOS time %s (%s) = %ld\n", asctime (&tm), | ~~^ | | | long int | %lld -
adjtimex.c:959:40: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'time_t' {aka 'long long int'} [-Wformat=] 959 | printf("WARNING: CMOS time %ld differs from system time %ld by %3.2f hours\n", | ~~^ | | | long int | %lld 960 | cmos_time, now.tv_sec, (summertime_correction)/3600.); | ~~~~~~~~~ | | | time_t {aka long long int} -
adjtimex.c:959:69: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 959 | printf("WARNING: CMOS time %ld differs from system time %ld by %3.2f hours\n", | ~~^ | | | long int | %lld 960 | cmos_time, now.tv_sec, (summertime_correction)/3600.); | ~~~~~~~~~~ | | | time_t {aka long long int} -
adjtimex.c:729:7: warning: variable 'saveerr' set but not used [-Wunused-but-set-variable] 729 | int saveerr; | ^~~~~~~ -
adjtimex.c:1339:10: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 1339 | int n, ret; | ^~~ -
adjtimex.c:1338:8: warning: variable 'ch' set but not used [-Wunused-but-set-variable] 1338 | char ch, buf[64], *s; | ^~ -
adjtimex.c:1632:24: warning: passing argument 1 of 'ctime' from incompatible pointer type [-Wincompatible-pointer-types] 1632 | ctime(&pca->ca_adj_time)); | ^~~~~~~~~~~~~~~~~ | | | long int *