ruby-changes:11304
From: usa <ko1@a...>
Date: Thu, 12 Mar 2009 22:31:23 +0900 (JST)
Subject: [ruby-changes:11304] Ruby:r22917 (trunk): * win32/Makefile.sub (WARNFLAGS): warning 4996 is only in VC++8 or
usa 2009-03-12 22:31:11 +0900 (Thu, 12 Mar 2009) New Revision: 22917 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22917 Log: * win32/Makefile.sub (WARNFLAGS): warning 4996 is only in VC++8 or later. Modified files: trunk/ChangeLog trunk/win32/Makefile.sub Index: ChangeLog =================================================================== --- ChangeLog (revision 22916) +++ ChangeLog (revision 22917) @@ -1,3 +1,8 @@ +Thu Mar 12 22:29:36 2009 NAKAMURA Usaku <usa@r...> + + * win32/Makefile.sub (WARNFLAGS): warning 4996 is only in VC++8 or + later. + Thu Mar 12 22:14:01 2009 Tanaka Akira <akr@f...> * ext/openssl/ossl_ssl.c (ossl_ssl_def_const): use INT2NUM because Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 22916) +++ win32/Makefile.sub (revision 22917) @@ -159,8 +159,12 @@ COMPILERFLAG = -Zm600 !endif !if !defined(WARNFLAGS) +!if $(MSC_VER) >= 1400 WARNFLAGS = -W2 -wd4996 +!else +WARNFLAGS = -W2 !endif +!endif !if !defined(CFLAGS) CFLAGS = $(RUNTIMEFLAG) $(DEBUGFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG) $(COMPILERFLAG) !endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/