summaryrefslogtreecommitdiff
path: root/devel/root/files/patch-build_unix_compiledata.sh
blob: 4283590fb50b8b85c702475e936a933c380eb353 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- build/unix/compiledata.sh.orig	2022-11-16 10:35:46 UTC
+++ build/unix/compiledata.sh
@@ -58,7 +58,7 @@ CXXFLAGS=`echo $CXXFLAGS | sed 's/-Iinclude //' `
 
 # Remove the flags turning warnings into errors or extending
 # the number of warnings.
-CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-Werror //g' -e 's/-Werror=\S* //g' -e 's/-Wall //g' -e 's/-Wshadow //g'  `
+CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-Werror //g' -e 's/-Werror=[^[[:space:]]]* //g' -e 's/-Wall //g' -e 's/-Wshadow //g'  `
 
 # Determine the compiler version
 BXX="`basename $CXX`"