ruby-changes:50051
From: nobu <ko1@a...>
Date: Sat, 3 Feb 2018 08:25:47 +0900 (JST)
Subject: [ruby-changes:50051] nobu:r62169 (trunk): eval.c: get rid of format-zero-length warning
nobu 2018-02-03 08:25:42 +0900 (Sat, 03 Feb 2018) New Revision: 62169 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62169 Log: eval.c: get rid of format-zero-length warning Modified files: trunk/eval.c Index: eval.c =================================================================== --- eval.c (revision 62168) +++ eval.c (revision 62169) @@ -641,7 +641,7 @@ rb_exc_fatal(VALUE mesg) https://github.com/ruby/ruby/blob/trunk/eval.c#L641 void rb_interrupt(void) { - rb_raise(rb_eInterrupt, ""); + rb_exc_raise(rb_exc_new(rb_eInterrupt, 0, 0)); } enum {raise_opt_cause, raise_max_opt}; /*< \private */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/