Commit a610934c authored by Meena Vyas's avatar Meena Vyas Committed by Richard Levitte
Browse files

Allow --strict-warnings with the icc compiler as well

parent bffa1ff8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1323,8 +1323,8 @@ if (defined($config{api})) {
if ($strict_warnings)
	{
	my $wopt;
	die "ERROR --strict-warnings requires gcc or clang"
            unless $ecc eq 'gcc' || $ecc eq 'clang';
	die "ERROR --strict-warnings requires gcc, clang or icc"
            unless $ecc eq 'gcc' || $ecc eq 'clang' || $ecc eq 'icc';
	foreach $wopt (split /\s+/, $gcc_devteam_warn)
		{
		$config{cflags} .= " $wopt" unless ($config{cflags} =~ /(?:^|\s)$wopt(?:\s|$)/)