Commit 6ff1b63b authored by cremno's avatar cremno

MSVC: treat implicit function decl. as error

As equivalent to GCC's `-Werror-implicit-function-declaration`.
parent 72fe54c4
MRuby::Toolchain.new(:visualcpp) do |conf| MRuby::Toolchain.new(:visualcpp) do |conf|
[conf.cc].each do |cc| [conf.cc].each do |cc|
cc.command = ENV['CC'] || 'cl.exe' cc.command = ENV['CC'] || 'cl.exe'
cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /Zi /MD /O2 /D_CRT_SECURE_NO_WARNINGS)] # C4013: implicit function declaration
cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /we4013 /Zi /MD /O2 /D_CRT_SECURE_NO_WARNINGS)]
cc.include_paths = ["#{MRUBY_ROOT}/include"] cc.include_paths = ["#{MRUBY_ROOT}/include"]
cc.defines = %w(DISABLE_GEMS MRB_STACK_EXTEND_DOUBLING) cc.defines = %w(DISABLE_GEMS MRB_STACK_EXTEND_DOUBLING)
cc.option_include_path = '/I%s' cc.option_include_path = '/I%s'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment