From 263b8377627f841a9bb91c8740ef72b983999f21 Mon Sep 17 00:00:00 2001 From: julienlusson Date: Mon, 15 Jan 2018 13:51:25 +0100 Subject: [PATCH] Disable nested includes warnings for Perl > 5.6. --- tools/awstats_buildstaticpages.pl | 2 +- tools/geoip_generator.pl | 2 +- wwwroot/cgi-bin/awstats.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/awstats_buildstaticpages.pl b/tools/awstats_buildstaticpages.pl index 7d89bd04..25e05520 100755 --- a/tools/awstats_buildstaticpages.pl +++ b/tools/awstats_buildstaticpages.pl @@ -183,7 +183,7 @@ sub Parse_Config { # Correct relative include files if ($FileConfig =~ /^(.*[\\\/])[^\\\/]*$/) { $includeFile = "$1$includeFile"; } } - if ($level > 1) { + if ( $level > 1 && $^V lt v5.6.0 ) { warning("Warning: Perl versions before 5.6 cannot handle nested includes"); next; } diff --git a/tools/geoip_generator.pl b/tools/geoip_generator.pl index 4f53b50b..cb5f3b92 100755 --- a/tools/geoip_generator.pl +++ b/tools/geoip_generator.pl @@ -202,7 +202,7 @@ sub Parse_Config { # Correct relative include files if ($FileConfig =~ /^(.*[\\\/])[^\\\/]*$/) { $includeFile = "$1$includeFile"; } } - if ($level > 1) { + if ( $level > 1 && $^V lt v5.6.0 ) { warning("Warning: Perl versions before 5.6 cannot handle nested includes"); next; } diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index b04ed6f8..df29af3d 100755 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -1895,7 +1895,7 @@ sub Parse_Config { $includeFile = "$1$includeFile"; } } - if ( $level > 1 ) { + if ( $level > 1 && $^V lt v5.6.0 ) { warning( "Warning: Perl versions before 5.6 cannot handle nested includes" ); -- 2.47.2