Re: change in AP_INIT_TAKE1

2009-03-23 Thread Ryan Deemer
Hi all, I am using the same compiler for both. I traced the code of mod_ruby.c and saw the fix that they had done, and doing the same casting removed the warnings. I guess this happened because of the change in the macro between 2.0 and 2.2. Casted the second argument like this. AP_INIT_TAKE1("

Re: change in AP_INIT_TAKE1

2009-03-20 Thread Nick Kew
On Thu, 19 Mar 2009 17:02:32 -0400 Ryan Deemer wrote: > Hi all, > > I am porting my custom module from apache 2.0 module to 2.2.11 using > gcc-3.4.6 and get the following warning in the usage of > AP_INIT_TAKE1. > > mod_reversal.c:786: warning: initialization from incompatible pointer > type

Re: change in AP_INIT_TAKE1

2009-03-20 Thread Jeff Trawick
On Fri, Mar 20, 2009 at 2:04 PM, Ryan Deemer wrote: > Hi guys, > > Anybody come across this before? dunno are you sure the types of the arguments to AP_INIT_TAKEx are correct? If you build httpd yourself, did the compilation of the bundled modules spew the same warnings? (Or try building a f

Re: change in AP_INIT_TAKE1

2009-03-20 Thread Ryan Deemer
Hi guys, Anybody come across this before? Thanks Ryan. On Thu, Mar 19, 2009 at 5:02 PM, Ryan Deemer wrote: Hi all, I am porting my custom module from apache 2.0 module to 2.2.11 using gcc-3.4.6 and get the following warning in the usage of AP_INIT_TAKE1. mod_reversal.c:786: warning: initiali

change in AP_INIT_TAKE1

2009-03-19 Thread Ryan Deemer
Hi all, I am porting my custom module from apache 2.0 module to 2.2.11 using gcc-3.4.6 and get the following warning in the usage of AP_INIT_TAKE1. mod_reversal.c:786: warning: initialization from incompatible pointer type I see that it is discussed previously, but I couldnt find any specific s