From 47d417a9ead32fb1d4dc85843af5f221b8116cc1 Mon Sep 17 00:00:00 2001
From: Robert Izzard <r.izzard@surrey.ac.uk>
Date: Fri, 6 Sep 2019 15:26:54 +0100
Subject: [PATCH] remove warnings

---
 configure | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 9280b4ea0..c1f64095a 100755
--- a/configure
+++ b/configure
@@ -551,13 +551,15 @@ sub secondary_variables
     
     if($generic)
     {
+        no warnings;
 	# code should be portable
-	$coptflags =~ s/-msse\S+//g;
-	$cflags =~ s/-mtune=\S+/-mtune=generic/g;
-	$coptflags =~ s/-mtune=\S+/-mtune=generic/g;
 	$cflags =~ s/-march=\S+//g;
-	$coptflags =~ s/-march=\S+//g;
+	$cflags =~ s/-mtune=\S+/-mtune=generic/g;
+	$coptflags =~ s/-msse\S+//g;
+        $coptflags =~ s/-mtune=\S+/-mtune=generic/g;
+        $coptflags =~ s/-march=\S+//g;
 	$coptflags =~ s/-m(3dnow|popcnt)//g;
+        use warnings;
     }
 
     
-- 
GitLab