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("Blue_Door", default_bluedoor_port, NULL, BD_CONF, "Default
BlueDoor Port"),
AP_INIT_TAKE1("Blue_Door", (const char *(*)())default_bluedoor_port, NULL,
BD_CONF, "Default BlueDoor Port"),
Comments welcome.
Thanks
Ryan.
On Fri, Mar 20, 2009 at 2:30 PM, Nick Kew <[email protected]> wrote:
> On Thu, 19 Mar 2009 17:02:32 -0400
> Ryan Deemer <[email protected]> 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
>
> Could it be that you have different compiler flags, a stricter
> gcc version, or perhaps a different architecture (like 32 vs 64-bit
> compile)?
>
> If not, a code sample that demonstrates what you're talking
> about would help.
>
> --
> Nick Kew
>
> Application Development with Apache - the Apache Modules Book
> http://www.apachetutor.org/
>