From c2630072f4e626804e2a64140d676771d31da14c Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Mon, 19 Feb 2018 11:15:17 -0700 Subject: [PATCH] Avoid an error in C with gcc-4.x. This fix is required because of -Werror (which is necessary in flags.jam). --- src/tools/flags.jam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/flags.jam b/src/tools/flags.jam index a9f8fc187..045f9af69 100644 --- a/src/tools/flags.jam +++ b/src/tools/flags.jam @@ -34,7 +34,7 @@ rule init ( ) rule write-main ( target : : properties * ) { print.output $(target) ; - print.text "int main() {}\n" : yes ; + print.text "int main() { return 0; }\n" : yes ; } # Applies true-properties if the toolset recognizes a specific flag.