ruby-changes:11267
From: nobu <ko1@a...>
Date: Wed, 11 Mar 2009 04:22:24 +0900 (JST)
Subject: [ruby-changes:11267] Ruby:r22878 (trunk): * signal.c (sig_trap): suppress warnings.
nobu 2009-03-11 04:22:11 +0900 (Wed, 11 Mar 2009) New Revision: 22878 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22878 Log: * signal.c (sig_trap): suppress warnings. Modified files: trunk/ChangeLog trunk/signal.c trunk/version.h Index: ChangeLog =================================================================== --- ChangeLog (revision 22877) +++ ChangeLog (revision 22878) @@ -1,3 +1,7 @@ +Wed Mar 11 04:22:12 2009 Nobuyoshi Nakada <nobu@r...> + + * signal.c (sig_trap): suppress warnings. + Tue Mar 10 20:07:45 2009 Nobuyoshi Nakada <nobu@r...> * win32/Makefile.sub (WARNFLAGS): uses -wd4996 instead of Index: version.h =================================================================== --- version.h (revision 22877) +++ version.h (revision 22878) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_RELEASE_DATE "2009-03-10" +#define RUBY_RELEASE_DATE "2009-03-11" #define RUBY_PATCHLEVEL -1 #define RUBY_BRANCH_NAME "trunk" @@ -8,7 +8,7 @@ #define RUBY_VERSION_TEENY 1 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 3 -#define RUBY_RELEASE_DAY 10 +#define RUBY_RELEASE_DAY 11 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; Index: signal.c =================================================================== --- signal.c (revision 22877) +++ signal.c (revision 22878) @@ -935,7 +935,7 @@ struct trap_arg arg; rb_secure(2); - if (argc == 0 || argc > 2) { + if (argc < 1 || argc > 2) { rb_raise(rb_eArgError, "wrong number of arguments -- trap(sig, cmd)/trap(sig){...}"); } @@ -944,7 +944,7 @@ arg.cmd = rb_block_proc(); arg.func = sighandler; } - else if (argc == 2) { + else { arg.cmd = argv[1]; arg.func = trap_handler(&arg.cmd, arg.sig); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/