@@ -204,6 +204,8 @@ def getDebugFlags(self, conf):
204204 flags ['CXXFLAGS' ] += self .__cxxFlags
205205 if platform .machine () == 'armv7l' :
206206 flags ['CXXFLAGS' ] += ['-Wno-psabi' ] # Bug #5106
207+ if get_compiler_ver (conf ) >= (16 , 0 , 0 ):
208+ flags ['CXXFLAGS' ] += ['-Wno-error=uninitialized' ] # Bug #5390
207209 return flags
208210
209211 def getOptimizedFlags (self , conf ):
@@ -241,6 +243,8 @@ def getGeneralFlags(self, conf):
241243 def getDebugFlags (self , conf ):
242244 flags = super ().getDebugFlags (conf )
243245 flags ['CXXFLAGS' ] += self .__cxxFlags
246+ if get_compiler_ver (conf ) >= (22 , 0 , 0 ) and get_compiler_ver (conf ) < (23 , 0 , 0 ):
247+ flags ['CXXFLAGS' ] += ['-Wno-c2y-extensions' ] # Bug #5391
244248 flags ['DEFINES' ] += [
245249 # Enable assertions in libc++
246250 # https://libcxx.llvm.org/Hardening.html
@@ -254,4 +258,6 @@ def getDebugFlags(self, conf):
254258 def getOptimizedFlags (self , conf ):
255259 flags = super ().getOptimizedFlags (conf )
256260 flags ['CXXFLAGS' ] += self .__cxxFlags
261+ if get_compiler_ver (conf ) >= (22 , 0 , 0 ) and get_compiler_ver (conf ) < (23 , 0 , 0 ):
262+ flags ['CXXFLAGS' ] += ['-Wno-c2y-extensions' ] # Bug #5391
257263 return flags
0 commit comments