mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Make implicit function declaration error [Feature #18615]
Enable `-Werror=implicit-function-declaration` by default for building C extensions for early failures.
This commit is contained in:
parent
e499d32689
commit
329c89bb42
1 changed files with 1 additions and 1 deletions
|
@ -2572,7 +2572,7 @@ site-install-rb: install-rb
|
|||
|
||||
if $warnflags = CONFIG['warnflags'] and CONFIG['GCC'] == 'yes'
|
||||
# turn warnings into errors only for bundled extensions.
|
||||
config['warnflags'] = $warnflags.gsub(/(\A|\s)-Werror[-=]/, '\1-W')
|
||||
config['warnflags'] = $warnflags.gsub(/(?:\A|\s)-W\Kerror[-=](?!implicit-function-declaration)/, '')
|
||||
if /icc\z/ =~ config['CC']
|
||||
config['warnflags'].gsub!(/(\A|\s)-W(?:division-by-zero|deprecated-declarations)/, '\1')
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue