require 'mkmf'
$CFLAGS << ' -Wall -Werror'
compiler = RbConfig::MAKEFILE_CONFIG['CC']
if ENV['DEBUG'] == 'true' && compiler =~ /gcc|g\+\+/
  $CFLAGS << ' -fbounds-check'
end
$warnflags.gsub!(/-Wdeclaration-after-statement/, "")
create_makefile("liquid_c")

require 'mkmf'
$CFLAGS << ' -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers'
compiler = RbConfig::MAKEFILE_CONFIG['CC']
if ENV['DEBUG'] == 'true' && compiler =~ /gcc|g\+\+/
  $CFLAGS << ' -fbounds-check'
end
$warnflags.gsub!(/-Wdeclaration-after-statement/, "")
create_makefile("liquid_c")

Enable -Wextra and disable unused parameter and missing field initializer warnings
Enable -Wextra and disable unused parameter and missing field initializer warnings
