Just submitted a new version of my CPAN XS module. Something in one of the tools involved in making this module must have changed, because when I 'make' the module I get lots of error messages like the last 2 lines:
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
Here is what the start of the subject routine looks like:
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);
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.

Has anyone seen such warnings before? How do I get rid of them? They are likely to alarm potential users.

cmac

In reply to warnings in XS make by cmac

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.