This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
voidflags.U: Use new compiler_warning.U
authorKarl Williamson <khw@cpan.org>
Sun, 21 Jun 2020 18:39:34 +0000 (12:39 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 21 Aug 2020 20:34:31 +0000 (14:34 -0600)
U/modified/voidflags.U

index ba1acf0..917ed7d 100644 (file)
@@ -18,7 +18,7 @@
 ?RCS: Revision 3.0  1993/08/18  12:10:01  ram
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
-?MAKE:voidflags defvoidused: cat rm_try contains +cc +ccflags package \
+?MAKE:voidflags defvoidused: cat rm_try compiler_warning +cc +ccflags package \
        Oldconfig Myread i_stdlib
 ?MAKE: -pick add $@ %<
 ?S:voidflags:
@@ -98,7 +98,7 @@ EOCP
        if $cc $ccflags -c -DTRY=$defvoidused try.c >.out 2>&1 ; then
                voidflags=$defvoidused
        echo "Good.  It appears to support void to the level $package wants.">&4
-               if $contains warning .out >/dev/null 2>&1; then
+               if $compiler_warning .out >/dev/null 2>&1; then
                        echo "However, you might get some warnings that look like this:"
                        $cat .out
                fi