This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Hide compile warnings for try.c in compile_ok
authorH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Thu, 2 Aug 2018 13:04:12 +0000 (15:04 +0200)
committerH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Thu, 2 Aug 2018 13:04:12 +0000 (15:04 +0200)
We don't want the compilation warnings. We do want the output of try
when it uses $run

Backport of 44a61463

U/compline/Compile.U

index 3de1bb8..d4f0c9b 100644 (file)
@@ -57,5 +57,5 @@ $cc -o ${mc_file} $optimize $ccflags $ldflags $* ${mc_file}.c $libs > /dev/null
 compile_ok='
 mc_file=$1;
 shift;
-$cc -o ${mc_file} $optimize $ccflags $ldflags $* ${mc_file}.c $libs;'
+$cc -o ${mc_file} $optimize $ccflags $ldflags $* ${mc_file}.c $libs > /dev/null 2>&1;'