Description of problem: Hello there, I have just tried to compile package gthumb-2.0.1-1 from Redhat 9.0 with compiler flag -Wall. The compiler said preferences.c:351: warning: operation on `i' may be undefined preferences.c:352: warning: operation on `i' may be undefined preferences.c:353: warning: operation on `i' may be undefined preferences.c:397: warning: operation on `i' may be undefined preferences.c:398: warning: operation on `i' may be undefined preferences.c:399: warning: operation on `i' may be undefined The source code is *r = dec (hex[i++]) * 16 + dec (hex[i++]); *g = dec (hex[i++]) * 16 + dec (hex[i++]); *b = dec (hex[i++]) * 16 + dec (hex[i++]); It is a basic fact of the C language that this kind of increment produces undefined code. Much better to write it something like *r = dec (hex[i]) * 16 + dec (hex[i + 1]); i += 2; *g = dec (hex[i]) * 16 + dec (hex[i + 1]); i += 2; *b = dec (hex[i]) * 16 + dec (hex[i + 1]); i += 2; Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
*** Bug 110809 has been marked as a duplicate of this bug. ***