summaryrefslogtreecommitdiffhomepage
path: root/auto/cc
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/cc
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/cc')
-rw-r--r--auto/cc/sunc5
1 files changed, 4 insertions, 1 deletions
diff --git a/auto/cc/sunc b/auto/cc/sunc
index 226ef5ea6..806ccc439 100644
--- a/auto/cc/sunc
+++ b/auto/cc/sunc
@@ -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