# Regex to catch (GCC) compiler warnings.
my $warning_regex = qr/^(.+?):([0-9]+):[0-9]+: warning: (.+?) \[(.+?)\]$/;
# Regex to catch (GCC) compiler warnings.
my $warning_regex = qr/^(.+?):([0-9]+):[0-9]+: warning: (.+?) \[(.+?)\]$/;
next if $line =~ /^\s*(C|c)ompiler[\s.]*:\s+$cc_regex(\s-std=[a-z0-9:+]+)?\s*$/
or $line =~ /^\s*- (CC|CXX)\s*=\s*$cc_regex\s*$/
or $line =~ /^\s*-- Check for working (C|CXX) compiler: /;
next if $line =~ /^\s*(C|c)ompiler[\s.]*:\s+$cc_regex(\s-std=[a-z0-9:+]+)?\s*$/
or $line =~ /^\s*- (CC|CXX)\s*=\s*$cc_regex\s*$/
or $line =~ /^\s*-- Check for working (C|CXX) compiler: /;