From Bugzilla Helper: User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk (Win98; I) Description of problem: Hello there, I just tried to compile package ruby-1.6.7-10 from Redhat 8.0 The compiler said ruby.c:914: warning: operation on `s' may be undefined Here is an untested patch to shut up the compiler. *** ./ruby-1.6.7/ruby.c.old 2003-01-19 09:34:17.000000000 +0000 --- ./ruby-1.6.7/ruby.c 2003-01-19 09:35:02.000000000 +0000 *************** *** 911,917 **** /* See if all the arguments are contiguous in memory */ for (i = 1; i < origargc; i++) { if (origargv[i] == s + 1) ! s += strlen(++s); /* this one is ok too */ } len = s - origargv[0]; } --- 911,920 ---- /* See if all the arguments are contiguous in memory */ for (i = 1; i < origargc; i++) { if (origargv[i] == s + 1) ! { ! ++s; ! s += strlen( s); /* this one is ok too */ ! } } len = s - origargv[0]; } Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. compile the program 2. 3. Additional info
Fixed.