ext/RMagick/rmutil.c in rmagick-1.15.14 vs ext/RMagick/rmutil.c in rmagick-1.15.15

- old
+ new

@@ -1,6 +1,6 @@ -/* $Id: rmutil.c,v 1.90.2.3.2.6 2008/05/04 14:19:41 rmagick Exp $ */ +/* $Id: rmutil.c,v 1.90.2.3.2.7 2008/09/10 23:22:46 rmagick Exp $ */ /*============================================================================\ | Copyright (C) 2008 by Timothy P. Hunter | Name: rmutil.c | Author: Tim Hunter | Purpose: Utility functions for RMagick @@ -351,10 +351,11 @@ Purpose: called if rb_num2dbl raises an exception */ static VALUE rescue_not_dbl(VALUE ignored) { + ignored = ignored; // defeat gcc message return INT2FIX(0); } /* @@ -2715,16 +2716,16 @@ * Method: xxx#initialize * Purpose: initialize method for all Enum subclasses */ VALUE Enum_type_initialize(VALUE self, VALUE sym, VALUE val) { - volatile VALUE super_argv[2]; + VALUE super_argv[2]; volatile VALUE enumerators; super_argv[0] = sym; super_argv[1] = val; - (void) rb_call_super(2, (VALUE *)super_argv); + (void) rb_call_super(2, super_argv); if (rb_cvar_defined(CLASS_OF(self), rm_ID_enumerators) != Qtrue) { RUBY18(rb_cvar_set(CLASS_OF(self), rm_ID_enumerators, rb_ary_new(), 0)); RUBY16(rb_cvar_set(CLASS_OF(self), rm_ID_enumerators, rb_ary_new())); @@ -3097,11 +3098,11 @@ the "loc" string in the @magick_location instance variable */ VALUE ImageMagickError_initialize(int argc, VALUE *argv, VALUE self) { - volatile VALUE super_argv[1] = {(VALUE)0}; + VALUE super_argv[1] = {(VALUE)0}; int super_argc = 0; volatile VALUE extra = Qnil; switch(argc) { @@ -3114,11 +3115,11 @@ break; default: rb_raise(rb_eArgError, "wrong number of arguments (%d for 0 to 2)", argc); } - (void) rb_call_super(super_argc, (VALUE *)super_argv); + (void) rb_call_super(super_argc, super_argv); (void) rb_iv_set(self, "@"MAGICK_LOC, extra); return self; } @@ -3419,9 +3420,11 @@ const MagickSizeType sp, void *client_data) { volatile VALUE rval; volatile VALUE method, offset, span; + + tag = tag; // defeat gcc message #if defined(HAVE_LONG_LONG) // defined in Ruby's defines.h offset = rb_ll2inum(of); span = rb_ull2inum(sp); #else