Miscellaneous compiler warnings

Iain Morgan imorgan at nas.nasa.gov
Thu Feb 7 10:18:41 EST 2013


Hi,

On RHEL 6.3 with gcc 4.4.6, a number of compiler warnings are emitted
when building recent snapshots:

These all seem to be harmless, but annoying.

readpassphrase.c:127: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
readpassphrase.c:146: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
make[1]: Leaving directory `/u/wk/imorgan/src/openssh/warnings/openssh/openbsd-compat'
log.c:432: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
schnorr.c:494: warning: ignoring return value of ‘vasprintf’, declared with attribute warn_unused_result
schnorr.c:519: warning: ignoring return value of ‘vasprintf’, declared with attribute warn_unused_result
krl.c:508: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t’
krl.c:508: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’
krl.c:508: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 5 has type ‘u_int64_t’
krl.c:508: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 7 has type ‘u_int64_t’
krl.c:508: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 8 has type ‘u_int64_t’
krl.c:508: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 9 has type ‘u_int64_t’
krl.c:508: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 10 has type ‘u_int64_t’
krl.c:543: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t’
krl.c:543: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’
krl.c:933: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 2 has type ‘u_int64_t’
sshd.c:1808: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
serverloop.c:151: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
ssh-agent.c:1323: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
scp.c:1328: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
sftp.c:222: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result

-- 
Iain Morgan


More information about the openssh-unix-dev mailing list