cvsuser     02/01/18 15:58:02

  Modified:    .        Configure.pl
  Log:
  I think the optimal fix here is simply to remove -ansi -pedantic.
  -ansi may well have some uses, but even the gcc man pages say
  "There is no reason to use this option [-pedantic]; it exists only
  to satisfy pedants."
  
  Courtesy of Andy Dougherty <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.81      +9 -4      parrot/Configure.pl
  
  Index: Configure.pl
  ===================================================================
  RCS file: /home/perlcvs/parrot/Configure.pl,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -w -r1.80 -r1.81
  --- Configure.pl      14 Jan 2002 20:03:52 -0000      1.80
  +++ Configure.pl      18 Jan 2002 23:58:02 -0000      1.81
  @@ -2,7 +2,7 @@
   #
   # Configure.pl
   #
  -# $Id: Configure.pl,v 1.80 2002/01/14 20:03:52 dan Exp $
  +# $Id: Configure.pl,v 1.81 2002/01/18 23:58:02 dan Exp $
   #
   # Author: Brent Dax
   #
  @@ -75,7 +75,7 @@
   
   if($opt_version) {
       print "Parrot Version $parrot_version Configure\n";
  -    print '$Id: Configure.pl,v 1.80 2002/01/14 20:03:52 dan Exp $' . "\n";
  +    print '$Id: Configure.pl,v 1.81 2002/01/18 23:58:02 dan Exp $' . "\n";
       exit;
   }
   
  @@ -391,9 +391,14 @@
       # out that you're using 2.7.2 and -Wfoo isn't recognised there, move it up
       # into the next version becone (2.8)
   
  +    # Don't use -ansi -pedantic.  It makes it much harder to compile
  +    # using the system headers, which may well be tuned to a
  +    # non-strict environment -- especially since we are using perl5
  +    # compilation flags determined in a non-strict environment.
  +    # An example is Solaris 8.
       
       my @opt_and_vers = 
  -        (0 => "-Wall -ansi -pedantic -Wstrict-prototypes -Wmissing-prototypes 
-Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings 
-Wconversion -Waggregate-return -Winline -W -Wsign-compare -Wno-unused",
  +        (0 => "-Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow 
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion 
-Waggregate-return -Winline -W -Wsign-compare -Wno-unused",
           # others; ones we might like marked with ?
           # ? -Wundef for undefined idenfiers in #if
           # ? -Wbad-function-cast
  
  
  


Reply via email to