Codebase list ruby-fxruby / 25832f7
Disable warnings about maybe uninitialized variables This is a false positive of gcc. Lars Kanis 5 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
304304 else
305305 $CPPFLAGS += " -DNDEBUG"
306306 end
307 $CPPFLAGS += " -Wno-unused-function"
308307
309308 # Platform-specific modifications
310309 do_rake_compiler_setup
313312 $CFLAGS += " -DRUBY_1_9" if RUBY_VERSION =~ /1\.9\./
314313 $CFLAGS += " -DRUBY_2_0" if RUBY_VERSION =~ /2\.0\./
315314
315 if RbConfig::MAKEFILE_CONFIG['CC'] =~ /gcc/
316 $CXXFLAGS += " -Wno-unused-function"
317 $CXXFLAGS += " -Wno-maybe-uninitialized"
318 end
319
316320 # Last step: build the makefile
317321 create_header
318322 create_makefile("fox16_c")