diff options
| author | bggd <[email protected]> | 2014-02-23 16:08:56 +0900 |
|---|---|---|
| committer | bggd <[email protected]> | 2014-02-23 16:08:56 +0900 |
| commit | 15b484df387fd8254c0827e08325f853078d7546 (patch) | |
| tree | 05ddd29933d1814f30544ee928fafc991698d629 /tasks | |
| parent | e202d4cd530bfc660688da6316e33100b551ed83 (diff) | |
| download | mruby-15b484df387fd8254c0827e08325f853078d7546.tar.gz mruby-15b484df387fd8254c0827e08325f853078d7546.zip | |
Add warning for C89-style variable declarations
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/toolchains/gcc.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake index dec502732..b1827bcc5 100644 --- a/tasks/toolchains/gcc.rake +++ b/tasks/toolchains/gcc.rake @@ -1,7 +1,7 @@ MRuby::Toolchain.new(:gcc) do |conf| [conf.cc, conf.objc, conf.asm].each do |cc| cc.command = ENV['CC'] || 'gcc' - cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration)] + cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Werror=declaration-after-statement)] cc.include_paths = ["#{MRUBY_ROOT}/include"] cc.defines = %w(DISABLE_GEMS) cc.option_include_path = '-I%s' |
