Date: Sat, 17 Aug 2019 21:03:49 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: "Patrick M. Hausen" <hausen@punkt.de> Cc: freebsd-fs@freebsd.org Subject: Re: OpenZFS port compile error Message-ID: <57F902BF-E2B5-487C-B49C-2B0F3CA95CBE@FreeBSD.org> In-Reply-To: <A19323B1-BC1D-444E-9122-D6EC98D748F6@punkt.de> References: <A19323B1-BC1D-444E-9122-D6EC98D748F6@punkt.de>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 17 Aug 2019, at 20:55, Patrick M. Hausen <hausen@punkt.de> wrote:
>
> root@gimli:/usr/ports/sysutils/openzfs # uname -a
> FreeBSD gimli 12.0-STABLE FreeBSD 12.0-STABLE r351102 GENERIC i386
>
> root@gimli:/usr/ports/sysutils/openzfs # grep PORTVERSION Makefile
> PORTVERSION= 2019072200
>
> root@gimli:/usr/ports/sysutils/openzfs # make
> [...]
> timestamp.c:54:26: error: format specifies type 'long' but the argument has type 'time_t' (aka 'int') [-Werror,-Wformat]
> (void) printf("%ld\n", t);
> ~~~ ^
> %d
> 1 error generated.
>
> Any hints greatly appreciated.
Disable -Werror, or cast 't' to uintmax_t and use %jd as the format.
-Dimitry
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2
iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXVhPlQAKCRCwXqMKLiCW
ox68AKCOGH8+92IIhEeO3JcBM0l7jdcepgCfYZiokO1lVUxUzqALEDxHcyEX08k=
=/dlr
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57F902BF-E2B5-487C-B49C-2B0F3CA95CBE>
