aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/prelude.c.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl
index 73d35fc282..0ba6b0ba4b 100644
--- a/template/prelude.c.tmpl
+++ b/template/prelude.c.tmpl
@@ -81,6 +81,10 @@ Prelude.new(output, ARGV, vpath).instance_eval do
#include "ruby/ruby.h"
#include "vm_core.h"
+COMPILER_WARNING_PUSH
+#if __has_warning("-Wstring-concatenation")
+COMPILER_WARNING_IGNORED(-Wstring-concatenation)
+#endif
% preludes = @preludes.values.sort
% preludes.each {|i, prelude, lines, sub|
@@ -116,6 +120,8 @@ static const struct {
};
% }
+COMPILER_WARNING_POP
+
% if @have_sublib
#define PRELUDE_COUNT <%=preludes.size%>