From 51af3690dd225e1e3bf6f5c687d2e05cd9c85fce Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 8 May 2016 17:44:51 +0000 Subject: * configure.in: check function attirbute const and pure, and define CONSTFUNC and PUREFUNC if available. Note that I don't add those options as default because it still shows many false-positive (it seems not to consider longjmp). * vm_eval.c (stack_check): get rb_thread_t* as an argument to avoid duplicate call of GET_THREAD(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 1 + 1 file changed, 1 insertion(+) (limited to 'process.c') diff --git a/process.c b/process.c index 980d78fda0..1147205ebd 100644 --- a/process.c +++ b/process.c @@ -6921,6 +6921,7 @@ typedef long timetick_int_t; #define TIMETICK_INT2NUM(v) LONG2NUM(v) #endif +CONSTFUNC(static timetick_int_t gcd_timetick_int(timetick_int_t, timetick_int_t)); static timetick_int_t gcd_timetick_int(timetick_int_t a, timetick_int_t b) { -- cgit v1.2.3