Warnings from FreeBSD 12 on Raspberry Pi 2

Eric S. Raymond esr at thyrsus.com
Mon Sep 26 10:59:11 UTC 2016


Hal Murray <hmurray at megapathdsl.net>:
> Is there an obvious way to fix this stuff?
> 
> ../../tests/libntp/timespecops.c:112:103: warning: format specifies type 
> 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat]
> ../../tests/libntp/timespecops.c:112:124: warning: format specifies type 
> 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat]
> ../../tests/libntp/timespecops.c:112:145: warning: format specifies type 
> 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat]
> ../../tests/libntp/timevalops.c:79:103: warning: format specifies type 'long' 
> but the argument has type 'time_t' (aka 'long long') [-Wformat]
> ../../tests/libntp/timevalops.c:79:124: warning: format specifies type 'long' 
> but the argument has type 'time_t' (aka 'long long') [-Wformat]

Casts on the format arguments shiuld do it.  I've pushed a set of fixes
that illustrate how.

The reason your seeing these now is that I raided the latest public commit of
Classic for unit tests we didn't have.  There was some GSOC work on this
after the fork; it didn't turm out to amount to much, but we have it now.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


More information about the devel mailing list