From 75b93b2dcd856a79ced5fd2332079718d41f0a67 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Mon, 22 Jun 2020 13:13:48 -0500 Subject: [PATCH] Disable maybe-uninitialized error reporting in GCC. New addrlib trips this warning in release builds on UB 18.04 with gcc. Change-Id: I4a8aa0e531fa21011ddde99d769a8452d333ff20 [ROCm/ROCR-Runtime commit: 2e1b863195a1b1d80f907439a557954714af0ec2] --- projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt b/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt index a93477321c..75d8ccdce9 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt +++ b/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt @@ -144,7 +144,7 @@ set ( HSA_CXX_FLAGS ${HSA_COMMON_CXX_FLAGS} -Werror -fexceptions -fno-rtti -fvis set ( HSA_CXX_FLAGS ${HSA_CXX_FLAGS} -Wno-deprecated-declarations ) if ( CMAKE_COMPILER_IS_GNUCXX ) - set ( HSA_CXX_FLAGS ${HSA_CXX_FLAGS} -Wno-error=unused-but-set-variable) + set ( HSA_CXX_FLAGS ${HSA_CXX_FLAGS} -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized) endif () if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang") set ( HSA_CXX_FLAGS ${HSA_CXX_FLAGS} -Wno-error=self-assign)