From: Alan Burlison Date: Thu, 3 Nov 2005 12:54:16 +0000 (+0000) Subject: Document some bogus compiler warnings in README.solaris X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=59fadd0047a1639f11dafe915dbb953e0197e065;p=p5sagit%2Fp5-mst-13.2.git Document some bogus compiler warnings in README.solaris Subject: Re: Why is malloc_wrap now the default? Message-ID: <436A0878.1030703@sun.com> p4raw-id: //depot/perl@25971 --- diff --git a/README.solaris b/README.solaris index a8b32e0..d3b541f 100644 --- a/README.solaris +++ b/README.solaris @@ -508,6 +508,19 @@ make sure that it includes the directory with the 'ar' command. This is a common problem on Solaris, where 'ar' is in the /usr/ccs/bin/ directory. +=item warning: dead part of constant expression is nonconstant + +If you are using the Sun Studio 10 compilers ('cc -V' reports "Sun C 5.7") you +may see lots of these errors while building perl. This is an erroneous warning +from the compiler, if you are interested in the details the Sun bug id is +6344975. The warnings can safely be ignored, but if they bother you they may +be suppressed by adding "-Accflags=-erroff=E_DEAD_NONCONST" to your Configure +command-line. Note however that earlier versions of the compiler don't have the +ability to report this warning and will complain about a bad message tag if you +specify that you want the compiler to suppress the warning. Note also that the +erroff option embedded into Config.pm and will be used for building any XSUB +modules post-install. + =back =head1 MAKE TEST @@ -688,7 +701,3 @@ drawing heavily on advice from Alan Burlison, Nick Ing-Simmons, Tim Bunce, and many other Solaris users over the years. Please report any errors, updates, or suggestions to F. - -=head1 LAST MODIFIED - -$Id: README.solaris,v 1.4 2000/11/11 20:29:58 doughera Exp $