mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* configure.in, win32/Makefile.sub (WERRORFLAG): flag to treat
warnings as errors. * lib/mkmf.rb (Logging.postpone): yield log file object. * lib/mkmf.rb (xsystem): add options, :werror only right now. * lib/mkmf.rb (with_werror): check as if warnings are errors. * lib/mkmf.rb (convertible_int): make declaration conflict warnings errors not to pass wrong type. [ruby-dev:42684] * lib/mkmf.rb (COMMON_MACROS): get rid of conflicts. * win32/Makefile.sub (WARNFLAGS): make declaration conflict warnings errors if possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
75877a30a4
commit
e806b0fed7
4 changed files with 63 additions and 20 deletions
|
@ -189,11 +189,12 @@ COMPILERFLAG = -Zm600
|
|||
!endif
|
||||
!if !defined(WARNFLAGS)
|
||||
!if $(MSC_VER) >= 1400
|
||||
WARNFLAGS = -W2 -wd4996
|
||||
WARNFLAGS = -W2 -wd4996 -we4028 -we4142
|
||||
!else
|
||||
WARNFLAGS = -W2
|
||||
!endif
|
||||
!endif
|
||||
WERRORFLAG = -WX
|
||||
!if !defined(CFLAGS)
|
||||
CFLAGS = $(RUNTIMEFLAG) $(DEBUGFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG) $(COMPILERFLAG)
|
||||
!endif
|
||||
|
@ -679,6 +680,7 @@ s,@SHELL@,$$(COMSPEC),;t t
|
|||
s,@BUILD_FILE_SEPARATOR@,\,;t t
|
||||
s,@PATH_SEPARATOR@,;,;t t
|
||||
s,@CFLAGS@,$(CFLAGS),;t t
|
||||
s,@WERRORFLAG@,$(WERRORFLAG),;t t
|
||||
s,@DEFS@,$(DEFS),;t t
|
||||
s,@CPPFLAGS@,$(CPPFLAGS),;t t
|
||||
s,@CXXFLAGS@,$(CXXFLAGS),;t t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue