From 926e4659009e2a7ffc1d4fff522f3697f68ac6a6 Mon Sep 17 00:00:00 2001 From: Charlie Savage Date: Thu, 14 May 2020 22:17:22 -0700 Subject: [PATCH] More work on #272 - remove unneeded gcc warning since we are using c99. --- ext/ruby_prof/extconf.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/ruby_prof/extconf.rb b/ext/ruby_prof/extconf.rb index 6dd5bf7d..a4d2847c 100644 --- a/ext/ruby_prof/extconf.rb +++ b/ext/ruby_prof/extconf.rb @@ -6,4 +6,7 @@ # We want to intermix declarations and code (ie, don't define all variables at the top of the method) $CFLAGS += ' -std=c99' +# And since we are using C99 we want to disable Ruby sending these warnings to gcc +CONFIG['warnflags'].gsub!('-Wdeclaration-after-statement', '') + create_makefile("ruby_prof")