diff --git a/ext/opencv/extconf.rb b/ext/opencv/extconf.rb index 0402197..c1a59dc 100755 --- a/ext/opencv/extconf.rb +++ b/ext/opencv/extconf.rb @@ -70,6 +70,9 @@ opencv_headers.each {|header| } have_header("stdarg.h") +$warnflags.slice!('-Wdeclaration-after-statement') +$warnflags.slice!('-Wimplicit-function-declaration') + # Quick fix for 1.8.7 $CFLAGS << " -I#{File.dirname(__FILE__)}/ext/opencv"