Skip to content

Commit

Permalink
Checking if there are warnflags before calling slice.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmichaels committed Jul 11, 2012
1 parent dc4d5fa commit 7a8ac37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ruby/nuodb/ext/nuodb/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@

dir_config('nuodb', '/opt/nuodb/include', '/opt/nuodb/lib64')

if CONFIG['warnflags']
CONFIG['warnflags'].slice!(/-Wdeclaration-after-statement/)
CONFIG['warnflags'].slice!(/-Wimplicit-function-declaration/)
end

have_library('NuoRemote') or raise

Expand Down

0 comments on commit 7a8ac37

Please sign in to comment.