]> git.kaiwu.me - nginx.git/commitdiff
Configure: fix build with -Werror=old-style-definition.
authorPiotr Sikora <piotrsikora@google.com>
Mon, 27 Jun 2016 22:00:05 +0000 (15:00 -0700)
committerPiotr Sikora <piotrsikora@google.com>
Mon, 27 Jun 2016 22:00:05 +0000 (15:00 -0700)
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
auto/cc/sunc
auto/endianness
auto/feature
auto/include
auto/types/sizeof
auto/types/typedef
auto/types/uintptr_t

index 226ef5ea672ec71aa9c5ed2f90eee7f64ce114ef..806ccc439569a1a46b452d57be4c5847d5c1337c 100644 (file)
@@ -20,7 +20,10 @@ have=NGX_COMPILER value="\"Sun C $NGX_SUNC_VER\"" . auto/define
 
 cat << END > $NGX_AUTOTEST.c
 
-int main() { printf("%d", __SUNPRO_C); }
+int main(void) {
+    printf("%d", __SUNPRO_C);
+    return 0;
+}
 
 END
 
index 70b0a106cd647d2279f4ae771989976e5f4942f2..1b552b6b37b87835d7c1f1a764548735f40480f8 100644 (file)
@@ -15,7 +15,7 @@ END
 
 cat << END > $NGX_AUTOTEST.c
 
-int main() {
+int main(void) {
     int i = 0x11223344;
     char *p;
 
index 1145f28684b172075c5023b4e80a62ae8f73871f..3561f5941f24e83e9fb5c6ddd8f4d5b85977da4d 100644 (file)
@@ -31,7 +31,7 @@ cat << END > $NGX_AUTOTEST.c
 $NGX_INCLUDE_UNISTD_H
 $ngx_feature_incs
 
-int main() {
+int main(void) {
     $ngx_feature_test;
     return 0;
 }
index e34dabdae1d7a26caac0f15fdbd89159bef46392..0f8bc1e04da5768d9d035c12063f9d6e11be730d 100644 (file)
@@ -20,7 +20,7 @@ cat << END > $NGX_AUTOTEST.c
 $NGX_INCLUDE_SYS_PARAM_H
 #include <$ngx_include>
 
-int main() {
+int main(void) {
     return 0;
 }
 
index b5b71bb98275e47cdb37674d2386995fdb2658b7..480d8cfa49aa9883d70aa6169b4b4a6f8b129f6f 100644 (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;
 }
index b55237e9319e2ae4d959677aee32f80e7f02f4ca..d54c289786bdf953b2ce1e66eeff947a203d1775 100644 (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;
 }
index 2b7212ebed6582474c13c59575965329fb655f60..7db6e4506bcda8104b0f25c18f080352a92e6daf 100644 (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;
 }