mirror of
https://github.com/nginx/nginx.git
synced 2024-11-21 16:28:40 +00:00
Configure: fix build with -Werror=old-style-definition.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
parent
b3d891a47e
commit
70f7141074
@ -20,7 +20,10 @@ have=NGX_COMPILER value="\"Sun C $NGX_SUNC_VER\"" . auto/define
|
|||||||
|
|
||||||
cat << END > $NGX_AUTOTEST.c
|
cat << END > $NGX_AUTOTEST.c
|
||||||
|
|
||||||
int main() { printf("%d", __SUNPRO_C); }
|
int main(void) {
|
||||||
|
printf("%d", __SUNPRO_C);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ END
|
|||||||
|
|
||||||
cat << END > $NGX_AUTOTEST.c
|
cat << END > $NGX_AUTOTEST.c
|
||||||
|
|
||||||
int main() {
|
int main(void) {
|
||||||
int i = 0x11223344;
|
int i = 0x11223344;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ cat << END > $NGX_AUTOTEST.c
|
|||||||
$NGX_INCLUDE_UNISTD_H
|
$NGX_INCLUDE_UNISTD_H
|
||||||
$ngx_feature_incs
|
$ngx_feature_incs
|
||||||
|
|
||||||
int main() {
|
int main(void) {
|
||||||
$ngx_feature_test;
|
$ngx_feature_test;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ cat << END > $NGX_AUTOTEST.c
|
|||||||
$NGX_INCLUDE_SYS_PARAM_H
|
$NGX_INCLUDE_SYS_PARAM_H
|
||||||
#include <$ngx_include>
|
#include <$ngx_include>
|
||||||
|
|
||||||
int main() {
|
int main(void) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ $NGX_INCLUDE_UNISTD_H
|
|||||||
$NGX_INCLUDE_INTTYPES_H
|
$NGX_INCLUDE_INTTYPES_H
|
||||||
$NGX_INCLUDE_AUTO_CONFIG_H
|
$NGX_INCLUDE_AUTO_CONFIG_H
|
||||||
|
|
||||||
int main() {
|
int main(void) {
|
||||||
printf("%d", (int) sizeof($ngx_type));
|
printf("%d", (int) sizeof($ngx_type));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ do
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
$NGX_INCLUDE_INTTYPES_H
|
$NGX_INCLUDE_INTTYPES_H
|
||||||
|
|
||||||
int main() {
|
int main(void) {
|
||||||
$ngx_try i = 0;
|
$ngx_try i = 0;
|
||||||
return (int) i;
|
return (int) i;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ cat << END > $NGX_AUTOTEST.c
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
$NGX_INTTYPES_H
|
$NGX_INTTYPES_H
|
||||||
|
|
||||||
int main() {
|
int main(void) {
|
||||||
uintptr_t i = 0;
|
uintptr_t i = 0;
|
||||||
return (int) i;
|
return (int) i;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user