Mercurial > hg > nginx
diff auto/types/sizeof @ 4543:51744fa997c7
Fixed compilation warnings in configuration C tests.
Based on a patch by Piotr Sikora.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 15 Mar 2012 20:39:38 +0000 |
parents | d620f497c50f |
children | 3a99980ac221 |
line wrap: on
line diff
--- a/auto/types/sizeof +++ b/auto/types/sizeof @@ -20,12 +20,13 @@ cat << END > $NGX_AUTOTEST.c #include <sys/time.h> $NGX_INCLUDE_UNISTD_H #include <signal.h> +#include <stdio.h> #include <sys/resource.h> $NGX_INCLUDE_INTTYPES_H $NGX_INCLUDE_AUTO_CONFIG_H int main() { - printf("%d", sizeof($ngx_type)); + printf("%zu", sizeof($ngx_type)); return 0; }