From f67b99fc26b3329af46c332240e6d9e623108bb2 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 30 Jun 2020 18:15:02 -0400 Subject: [PATCH] Enable warnings on unused functions There weren't all that many to fix, and it's not even the most prevalent warning. Change-Id: I286aaa42e3c4e305b1e1918f302bbf71e41dd47d [ROCm/clr commit: 3a564bc6cbc50f1a32c37d8b5343eb155c4ceac5] --- projects/clr/rocclr/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/clr/rocclr/CMakeLists.txt b/projects/clr/rocclr/CMakeLists.txt index cb8590ea39..5002cd35b1 100644 --- a/projects/clr/rocclr/CMakeLists.txt +++ b/projects/clr/rocclr/CMakeLists.txt @@ -87,8 +87,7 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR # This one seems impossible to fix for now. # There are hundreds of instances of unused vars/functions # throughout the code base. - -Wno-unused-variable - -Wno-unused-function) + -Wno-unused-variable) endif() add_definitions(-D__x86_64__ -DOPENCL_MAJOR=2 -DOPENCL_MINOR=1 -DCL_TARGET_OPENCL_VERSION=220 -DATI_OS_LINUX -DATI_ARCH_X86 -DLITTLEENDIAN_CPU -DATI_BITS_64 -DWITH_TARGET_AMDGCN -DOPENCL_EXPORTS -DCL_USE_DEPRECATED_OPENCL_1_0_APIS -DCL_USE_DEPRECATED_OPENCL_1_1_APIS -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_USE_DEPRECATED_OPENCL_2_0_APIS -DVEGA10_ONLY=false -DWITH_LIGHTNING_COMPILER)