[前][次][番号順一覧][スレッド一覧]

ruby-changes:9736

From: usa <ko1@a...>
Date: Fri, 2 Jan 2009 23:35:23 +0900 (JST)
Subject: [ruby-changes:9736] Ruby:r21277 (trunk): * include/ruby/missing.h, sprintf.c: get rid of a warning of VC++.

usa	2009-01-02 23:35:07 +0900 (Fri, 02 Jan 2009)

  New Revision: 21277

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21277

  Log:
    * include/ruby/missing.h, sprintf.c: get rid of a warning of VC++.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/missing.h
    trunk/sprintf.c

Index: include/ruby/missing.h
===================================================================
--- include/ruby/missing.h	(revision 21276)
+++ include/ruby/missing.h	(revision 21277)
@@ -151,7 +151,13 @@
 RUBY_EXTERN int snprintf(char *, size_t n, char const *, ...);
 #endif
 #ifndef HAVE_VSNPRINTF
+# if _MSC_VER >= 1300
+#  pragma warning(disable: 4273)
+# endif
 RUBY_EXTERN int vsnprintf(char *, size_t n, char const *, va_list);
+# if _MSC_VER >= 1300
+#  pragma warning(default: 4273)
+# endif
 #endif
 
 #ifndef HAVE_STRLCPY
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21276)
+++ ChangeLog	(revision 21277)
@@ -1,3 +1,7 @@
+Fri Jan  2 23:33:38 2009  NAKAMURA Usaku  <usa@r...>
+
+	* include/ruby/missing.h, sprintf.c: get rid of a warning of VC++.
+
 Fri Jan  2 22:25:46 2009  Yusuke Endoh  <mame@t...>
 
 	* process.c: use sigaction instead of sigset.  [ruby-core:21021]
Index: sprintf.c
===================================================================
--- sprintf.c	(revision 21276)
+++ sprintf.c	(revision 21277)
@@ -1084,13 +1084,7 @@
 #undef snprintf
 #define FLOATING_POINT 1
 #define BSD__dtoa ruby_dtoa
-#if _MSC_VER >= 1300
-#pragma warning(disable: 4273)
-#endif
 #include "missing/vsnprintf.c"
-#if _MSC_VER >= 1300
-#pragma warning(default: 4273)
-#endif
 
 static int
 ruby__sfvwrite(register rb_printf_buffer *fp, register struct __suio *uio)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]