>I am somewhat confused about the status of the >"may be used uninitialized" warning...
This list is more for discussing the internals of the GCC compiler, not how to use it. As for your question, if cnt is less than or equal to zero, or if a[i] is always less than zero, then the assignment to best.d never happens in the loop which leaves trash in best.d since best is allocated off the stack and holds trash until initialized. Hence the warning for reading at a possibly unitialized variable. Initialize best.d where you initialize best.score to quiet the warning. -- Peter Barada [EMAIL PROTECTED]