Bug #9338
closedBuild failure of trunk with MSVC 2013
Description
The revision r44473 introduced the following error.
compiling eval.c
eval.c
eval.c(558) : error C4028: formal parameter 3 different from declaration
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\x86_amd64\cl.EXE"' : return code '0x2'
Stop.
You can see this issue also in http://rubyci.org (http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20131231T144935Z.log.html.gz)
Here is patch
diff --git a/eval.c b/eval.c
index 783aa33..b3c4100 100644
--- a/eval.c
+++ b/eval.c
@@ -554,7 +554,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg, VALUE cause)
}
static void
-rb_longjmp(int tag, volatile VALUE mesg, VALUE cause)
+rb_longjmp(int tag, volatile VALUE mesg, volatile VALUE cause)
{
rb_thread_t *th = GET_THREAD();
setup_exception(th, tag, mesg, cause);