[openssl-commits] [openssl]  OpenSSL_1_0_2-stable update
    Richard Levitte 
    levitte at openssl.org
       
    Mon Nov  9 11:15:54 UTC 2015
    
    
  
The branch OpenSSL_1_0_2-stable has been updated
       via  a89dda8cd024f53cbae75655e9ec000d9b4a320b (commit)
      from  fdbe4a3fa669166efaec0d963e4216233368a7d9 (commit)
- Log -----------------------------------------------------------------
commit a89dda8cd024f53cbae75655e9ec000d9b4a320b
Author: Richard Levitte <levitte at openssl.org>
Date:   Mon Nov 9 09:50:56 2015 +0100
    Make the match for previous cflags a bit more strict
    
    ./Configure [target] --strict-warnings -Wno-pedantic-ms-format
    would not add '-pedantic' because it matches '-Wno-pedantic-ms-format',
    which was added first.
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (cherry picked from commit 6703c4ea87b30554283deaa5df1f8d68725d3ee4)
-----------------------------------------------------------------------
Summary of changes:
 Configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Configure b/Configure
index e374a69..ac86cd6 100755
--- a/Configure
+++ b/Configure
@@ -1656,13 +1656,13 @@ if ($strict_warnings)
 	die "ERROR --strict-warnings requires gcc or clang" unless ($ecc =~ /gcc$/ or $ecc =~ /clang$/);
 	foreach $wopt (split /\s+/, $gcc_devteam_warn)
 		{
-		$cflags .= " $wopt" unless ($cflags =~ /$wopt/)
+		$cflags .= " $wopt" unless ($cflags =~ /(^|\s)$wopt(\s|$)/)
 		}
 	if ($ecc eq "clang")
 		{
 		foreach $wopt (split /\s+/, $clang_devteam_warn)
 			{
-			$cflags .= " $wopt" unless ($cflags =~ /$wopt/)
+			$cflags .= " $wopt" unless ($cflags =~ /(^|\s)$wopt(\s|$)/)
 			}
 		}
 	}
    
    
More information about the openssl-commits
mailing list