Re: warning in io.c

2010-10-06 Thread Edwin Eyan Moragas
On Wed, Oct 6, 2010 at 4:21 PM, Alexander Burger  wrote:
> Hi Edwin,
>
>> io.c:2161: warning: =91op=92 may be used uninitialized in this function
>>
>> my problem is that i can't find where `op is defined. any help would
>> be appreciated.
>
> Well, 'op' is declared in that line (2161), and initialized in line
> 2176. The C compiler is wrong with its warning. 'op' is always
> initialized, but gcc is not clever enough.
>

ah. there it goes. after looking again at line 2161, my stupidity surfaces.

int m, n, i, j, ac = length(x), p[ac], om, op;

right there is a declaration. i was thinking all of the RHS was an
assignment to each corresponding LHS argument.

apologies for my twisted interpretation of the code!

thank you.

/e

>
> Cheers,
> - Alex
> --
> UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
>
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe


Re: warning in io.c

2010-10-06 Thread Alexander Burger
Hi Edwin,

> io.c:2161: warning: =91op=92 may be used uninitialized in this function
> 
> my problem is that i can't find where `op is defined. any help would
> be appreciated.

Well, 'op' is declared in that line (2161), and initialized in line
2176. The C compiler is wrong with its warning. 'op' is always
initialized, but gcc is not clever enough.

This warning is an old issue. I don't want to write work-around code
just to silence a stupid compiler, so I got used to live with it ;-)

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe