summaryrefslogtreecommitdiffhomepage
path: root/auto/types
diff options
context:
space:
mode:
authorPiotr Sikora <piotrsikora@google.com>2016-06-27 15:00:05 -0700
committerPiotr Sikora <piotrsikora@google.com>2016-06-27 15:00:05 -0700
commit70f7141074896fb1ff3e5fc08407ea0f64f2076b (patch)
tree77d576467173f5c7c29f34d828038b028abdc204 /auto/types
parentb3d891a47e7ec0ed55c44ea9514af292fe3399b0 (diff)
downloadnginx-70f7141074896fb1ff3e5fc08407ea0f64f2076b.tar.gz
nginx-70f7141074896fb1ff3e5fc08407ea0f64f2076b.tar.bz2
Configure: fix build with -Werror=old-style-definition.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Diffstat (limited to 'auto/types')
-rw-r--r--auto/types/sizeof2
-rw-r--r--auto/types/typedef2
-rw-r--r--auto/types/uintptr_t2
3 files changed, 3 insertions, 3 deletions
diff --git a/auto/types/sizeof b/auto/types/sizeof
index b5b71bb98..480d8cfa4 100644
--- a/auto/types/sizeof
+++ b/auto/types/sizeof
@@ -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;
}
diff --git a/auto/types/typedef b/auto/types/typedef
index b55237e93..d54c28978 100644
--- a/auto/types/typedef
+++ b/auto/types/typedef
@@ -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;
}
diff --git a/auto/types/uintptr_t b/auto/types/uintptr_t
index 2b7212ebe..7db6e4506 100644
--- a/auto/types/uintptr_t
+++ b/auto/types/uintptr_t
@@ -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;
}