Skip to content

Commit

Permalink
More work on #272 - remove unneeded gcc warning since we are using c99.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfis committed May 15, 2020
1 parent 21cd8d2 commit 926e465
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/ruby_prof/extconf.rb
Expand Up @@ -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")

0 comments on commit 926e465

Please sign in to comment.