Disable warnings about maybe uninitialized variables
This is a false positive of gcc.
Lars Kanis
5 years ago
304 | 304 | else |
305 | 305 | $CPPFLAGS += " -DNDEBUG" |
306 | 306 | end |
307 | $CPPFLAGS += " -Wno-unused-function" | |
308 | 307 | |
309 | 308 | # Platform-specific modifications |
310 | 309 | do_rake_compiler_setup |
313 | 312 | $CFLAGS += " -DRUBY_1_9" if RUBY_VERSION =~ /1\.9\./ |
314 | 313 | $CFLAGS += " -DRUBY_2_0" if RUBY_VERSION =~ /2\.0\./ |
315 | 314 | |
315 | if RbConfig::MAKEFILE_CONFIG['CC'] =~ /gcc/ | |
316 | $CXXFLAGS += " -Wno-unused-function" | |
317 | $CXXFLAGS += " -Wno-maybe-uninitialized" | |
318 | end | |
319 | ||
316 | 320 | # Last step: build the makefile |
317 | 321 | create_header |
318 | 322 | create_makefile("fox16_c") |