cmac has asked for the wisdom of the Perl Monks concerning the following question:
Here is what the start of the subject routine looks like:cc -c -I/usr/local/include -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fn +o-strict-aliasing -pipe -I/usr/local/include -O2 -DVERSION=\"0.54\ +" -DXS_VERSION=\"0.54\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.9/i3 +86-freebsd/CORE" MMA.c MMA.c: In function `boot_IPC__MMA': MMA.c:3033: warning: passing arg 3 of `Perl_newXS' discards qualifiers + from pointer target type MMA.c:3034: warning: passing arg 3 of `Perl_newXS' discards qualifiers + from pointer target type
I think these are due to the tools because I go back to my previous version and get the same messages, which didn't used to happen. In fact, the lines above are from my previous version.XS(boot_IPC__MMA) { #ifdef dVAR dVAR; dXSARGS; #else dXSARGS; #endif char* file = __FILE__; PERL_UNUSED_VAR(cv); /* -W */ PERL_UNUSED_VAR(items); /* -W */ XS_VERSION_BOOTCHECK ; { CV * cv ; newXS("IPC::MMA::constant", XS_IPC__MMA_constant, file); newXS("IPC::MMA::mm_create", XS_IPC__MMA_mm_create, file);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: warnings in XS make
by chromatic (Archbishop) on Aug 11, 2009 at 05:52 UTC | |
by cmac (Monk) on Aug 11, 2009 at 06:38 UTC | |
by chromatic (Archbishop) on Aug 11, 2009 at 20:08 UTC | |
by cmac (Monk) on Aug 12, 2009 at 00:49 UTC | |
|
Re: warnings in XS make
by Anonymous Monk on Aug 11, 2009 at 05:13 UTC | |
by cmac (Monk) on Aug 11, 2009 at 05:40 UTC | |
by Anonymous Monk on Aug 11, 2009 at 06:48 UTC |