Configure: fix build with -Werror=old-style-definition.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
Piotr Sikora
2016-06-27 15:00:05 -07:00
parent b3d891a47e
commit 70f7141074
7 changed files with 10 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ $NGX_INCLUDE_UNISTD_H
$NGX_INCLUDE_INTTYPES_H
$NGX_INCLUDE_AUTO_CONFIG_H
int main() {
int main(void) {
printf("%d", (int) sizeof($ngx_type));
return 0;
}

View File

@@ -27,7 +27,7 @@ do
#include <netinet/in.h>
$NGX_INCLUDE_INTTYPES_H
int main() {
int main(void) {
$ngx_try i = 0;
return (int) i;
}

View File

@@ -19,7 +19,7 @@ cat << END > $NGX_AUTOTEST.c
#include <sys/types.h>
$NGX_INTTYPES_H
int main() {
int main(void) {
uintptr_t i = 0;
return (int) i;
}