From: Yukihiro Matsumoto Date: 2006-05-17T18:03:48+09:00 Subject: Re: [ ruby-Bugs-4491 ] Segfault on x86_64 when built with -O0 in CFLAGS Hi, In message "Re: [ ruby-Bugs-4491 ] Segfault on x86_64 when built with -O0 in CFLAGS" on Wed, 17 May 2006 17:57:47 +0900, Yukihiro Matsumoto writes: |Thank you, Guy. Does this patch could solve the problem? Oops, here's the patch. @@ -801,5 +801,11 @@ dir_s_rmdir(obj, dir) +static void +sys_warning_1(const char* mesg) +{ + rb_sys_warning("%s", mesg); +} + #define GLOB_VERBOSE (1 << (sizeof(int) * CHAR_BIT - 1)) #define sys_warning(val) \ - ((flags & GLOB_VERBOSE) && rb_protect((VALUE (*)_((VALUE)))rb_sys_warning, (VALUE)(val), 0)) + ((flags & GLOB_VERBOSE) && rb_protect((VALUE (*)_((VALUE)))sys_warning_1, (VALUE)(val), 0))