details: http://hg.nginx.org/njs/rev/f87eefdd2c3d
branches:
changeset: 216:f87eefdd2c3d
user: Igor Sysoev <igor@sysoev.ru>
date: Mon Oct 24 17:16:10 2016 +0300
description:
A build with -Werror=old-style-definition has been fixed.
Patch by Piotr Sikora.
diffstat:
nxt/auto/clang | 10 +++++-----
nxt/auto/getrandom | 2 +-
nxt/auto/memalign | 4 ++--
nxt/auto/pcre | 2 +-
nxt/auto/time | 4 ++--
5 files changed, 11 insertions(+), 11 deletions(-)
diffs (114 lines):
diff -r 4b187e72aa9d -r f87eefdd2c3d nxt/auto/clang
--- a/nxt/auto/clang Mon Oct 24 15:04:57 2016 +0300
+++ b/nxt/auto/clang Mon Oct 24 17:16:10 2016 +0300
@@ -185,7 +185,7 @@ nxt_feature_name=NXT_HAVE_BUILTIN_UNREAC
nxt_feature_run=no
nxt_feature_incs=
nxt_feature_libs=
-nxt_feature_test="int main() {
+nxt_feature_test="int main(void) {
__builtin_unreachable();
}"
. ${NXT_AUTO}feature
@@ -196,7 +196,7 @@ nxt_feature_name=NXT_HAVE_BUILTIN_PREFET
nxt_feature_run=no
nxt_feature_incs=
nxt_feature_libs=
-nxt_feature_test="int main() {
+nxt_feature_test="int main(void) {
__builtin_prefetch(0);
}"
. ${NXT_AUTO}feature
@@ -209,7 +209,7 @@ nxt_feature_path=
nxt_feature_libs=
nxt_feature_test="int n __attribute__ ((visibility(\"default\")));
- int main() {
+ int main(void) {
return 1;
}"
. ${NXT_AUTO}feature
@@ -228,7 +228,7 @@ nxt_feature_test="#include <stdlib.h>
return malloc(1);
}
- int main() {
+ int main(void) {
if (f() != NULL) {
return 1;
}
@@ -255,7 +255,7 @@ else
nxt_feature_libs=
nxt_feature_test="int n __attribute__ ((aligned(64)));
- int main() {
+ int main(void) {
return 1;
}"
. ${NXT_AUTO}feature
diff -r 4b187e72aa9d -r f87eefdd2c3d nxt/auto/getrandom
--- a/nxt/auto/getrandom Mon Oct 24 15:04:57 2016 +0300
+++ b/nxt/auto/getrandom Mon Oct 24 17:16:10 2016 +0300
@@ -14,7 +14,7 @@ nxt_feature_test="#include <unistd.h>
#include <sys/syscall.h>
#include <linux/random.h>
- int main() {
+ int main(void) {
char buf[4];
(void) syscall(SYS_getrandom, buf, 4, 0);
diff -r 4b187e72aa9d -r f87eefdd2c3d nxt/auto/memalign
--- a/nxt/auto/memalign Mon Oct 24 15:04:57 2016 +0300
+++ b/nxt/auto/memalign Mon Oct 24 17:16:10 2016 +0300
@@ -13,7 +13,7 @@ nxt_feature_incs=
nxt_feature_libs=
nxt_feature_test="#include <stdlib.h>
- int main() {
+ int main(void) {
void *p;
if (posix_memalign(&p, 4096, 4096) != 0)
@@ -34,7 +34,7 @@ if [ $nxt_found = no ]; then
nxt_feature_libs=
nxt_feature_test="#include <stdlib.h>
- int main() {
+ int main(void) {
if (memalign(4096, 4096) == NULL)
return 1;
return 0;
diff -r 4b187e72aa9d -r f87eefdd2c3d nxt/auto/pcre
--- a/nxt/auto/pcre Mon Oct 24 15:04:57 2016 +0300
+++ b/nxt/auto/pcre Mon Oct 24 17:16:10 2016 +0300
@@ -20,7 +20,7 @@ if /bin/sh -c "(pcre-config --version)"
nxt_feature_libs=$NXT_PCRE_LIB
nxt_feature_test="#include <pcre.h>
- int main() {
+ int main(void) {
pcre *re;
re = pcre_compile(NULL, 0, NULL, 0, NULL);
diff -r 4b187e72aa9d -r f87eefdd2c3d nxt/auto/time
--- a/nxt/auto/time Mon Oct 24 15:04:57 2016 +0300
+++ b/nxt/auto/time Mon Oct 24 17:16:10 2016 +0300
@@ -12,7 +12,7 @@ nxt_feature_incs=
nxt_feature_libs=
nxt_feature_test="#include <time.h>
- int main() {
+ int main(void) {
time_t t;
struct tm tm;
@@ -32,7 +32,7 @@ nxt_feature_incs=
nxt_feature_libs=
nxt_feature_test="#include <time.h>
- int main() {
+ int main(void) {
altzone = 0;
return 0;
}"
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel