develooper Front page | perl.perl6.internals | Postings from August 2002

Re: [perl #15907] [PATCH] Make warnings configurable

Thread Previous
From:
Juergen Boemmels
Date:
August 20, 2002 02:15
Subject:
Re: [perl #15907] [PATCH] Make warnings configurable
Message ID:
m2sn19ki2i.fsf@helium.physik.uni-kl.de
Just replying to bugs-parrot@netlabs.develooper.com does not seem to
forward to the list. Ok, here once again to perl6-internals

Mike Lambert (via RT) <bugs-parrot@netlabs.develooper.com> writes:

> Looking at the patch, it seems rather GCC-specific. The checking for
> "no-X" versus "X" in the warnings flags seems to be rather non-portable to
> compilers like MSVC.

Yes its gcc-specific. Thats why the -WX vs -Wno-X part is in gcc.pl

The general part in progs.pl of this patch just sets the element
cc_warn in Config::Data, which is used in the Makefile just behind
${ccflags}. An other way to do it is not to introduce a command-line
option, and use ccflags for this, but then you need even more the
gcc-specific part to switch of the automatic warnings, because the
later warning option takes precedence over the former one. 

But the cc_warn mechanism was already there, I just made it accessible
through Configure.pl. If this option is called --ccwarn or --cc_warn I
have no strong preference, and I've chosen --ccwarn similar to
--ccflags.

> Unfortunately, I don't believe this is easily fixable.

I think its easy. We need a file for MSVC too, and there we can do all
the special cases for MSVC. Unfortunatly the only Visual compiler I've
access too is a russian version, so i can't submit any patches on
this.

> Mike Lambert

bye
jürgen
-- 
Juergen Boemmels			boemmels@physik.uni-kl.de
Fachbereich Physik			Tel: ++49-(0)631-205-2817
Universitaet Kaiserslautern		Fax: ++49-(0)631-205-3906
PGP Key fingerprint = 9F 56 54 3D 45 C1 32 6F  23 F6 C7 2F 85 93 DD 47


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About