From 66d044ec3e8d9a3d242399a5ed5cb76bf02f6722 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 21 Nov 2020 17:05:16 +0900 Subject: Remove `-Wdeclaration-after-statement` from gcc options; #5159 --- tasks/toolchains/gcc.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tasks') diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake index 34d747af5..316d2d9a1 100644 --- a/tasks/toolchains/gcc.rake +++ b/tasks/toolchains/gcc.rake @@ -2,7 +2,7 @@ MRuby::Toolchain.new(:gcc) do |conf, params| default_command = params[:default_command] || 'gcc' compiler_flags = %w(-g -O3 -Wall -Wundef) c_mandatory_flags = %w(-std=gnu99) - cxx_invalid_flags = %w(-Wdeclaration-after-statement -Werror-implicit-function-declaration) + cxx_invalid_flags = %w(-Werror-implicit-function-declaration) [conf.cc, conf.objc, conf.asm, conf.cxx].each do |compiler| if compiler == conf.cxx -- cgit v1.2.3