ruby-changes:40730
From: kosaki <ko1@a...>
Date: Tue, 1 Dec 2015 05:28:14 +0900 (JST)
Subject: [ruby-changes:40730] kosaki:r52809 (trunk): * include/ruby/util.h: remove a warning suppression C4723
kosaki 2015-12-01 05:27:52 +0900 (Tue, 01 Dec 2015) New Revision: 52809 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52809 Log: * include/ruby/util.h: remove a warning suppression C4723 (potential divide by zero) for VisualC++. It's meaningless. Before r26197, there is ruby_div0() in this place and it actually made divide by zero. But now it's just garbage. Modified files: trunk/ChangeLog trunk/include/ruby/util.h Index: include/ruby/util.h =================================================================== --- include/ruby/util.h (revision 52808) +++ include/ruby/util.h (revision 52809) @@ -80,14 +80,6 @@ double ruby_strtod(const char *, char ** https://github.com/ruby/ruby/blob/trunk/include/ruby/util.h#L80 #undef strtod #define strtod(s,e) ruby_strtod((s),(e)) -#if defined _MSC_VER && _MSC_VER >= 1300 -#pragma warning(push) -#pragma warning(disable:4723) -#endif -#if defined _MSC_VER && _MSC_VER >= 1300 -#pragma warning(pop) -#endif - void ruby_each_words(const char *, void (*)(const char*, int, void*), void *); RUBY_SYMBOL_EXPORT_END Index: ChangeLog =================================================================== --- ChangeLog (revision 52808) +++ ChangeLog (revision 52809) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Oct 21 09:04:09 2015 KOSAKI Motohiro <kosaki.motohiro@g...> + + * include/ruby/util.h: remove a warning suppression C4723 + (potential divide by zero) for VisualC++. It's meaningless. + Before r26197, there is ruby_div0() in this place and it + actually made divide by zero. But now it's just garbage. + Wed Oct 21 08:23:36 2015 KOSAKI Motohiro <kosaki.motohiro@g...> * random.c: random_raw_seed don't use GRND_NONBLOCK. GRND_NONBLOCK -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/