[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: minor bugfix for Apache::Test
From:       Geoffrey Young <geoff () modperlcookbook ! org>
Date:       2005-01-26 18:00:30
Message-ID: 41F7DABE.4090600 () modperlcookbook ! org
[Download RAW message or body]



Torsten Foertsch wrote:
> On Wednesday 26 January 2005 15:28, Geoffrey Young wrote:
> 
>>>-  modperl_handler_t  *handler;
>>>+  modperl_handler_t  *handler=0;
>>
>>hmm, what's that about?
> 
> 
> It cures this warning:
> IncludeHook.xs: In function `handle_perl':
> IncludeHook.xs:49: warning: `handler' might be used uninitialized in this 
> function
> 
> In line 194 you are using the handler that can be uninitialized at that time 
> from the compiler's point of view. It don't see the logic behind seen_sub and 
> puts out the warning. Hence the simple assingment to cure the warning.

ah.  I compile with -Werror and it passes without issue, but I guess my
compiler isn't recent enough to catch this particular item.

thanks.

I'm working on a new Apache-IncludeHook release, which looks like it will
have the subrequest issue solved.

--Geoff
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic