Enable the use of some warnings when building OCL-ROCclr

Similar to http://gerrit-git.amd.com/c/compute/ec/vdi/+/375385, except no -Wno-strict-aliasing.

With this change only one warning shows up during the build - -Wdeprecated-declarations in cltrace.

Change-Id: Ie335eb9c45287ee1006e6bd65d54d67b41f79604


[ROCm/clr commit: ac3848a8e6]
Этот коммит содержится в:
Vlad Sytchenko
2020-06-15 15:28:33 -04:00
родитель 83153d4a2d
Коммит 434a1719a3
+11 -2
Просмотреть файл
@@ -24,8 +24,17 @@ include_directories(${CMAKE_SOURCE_DIR}/khronos)
include_directories(${CMAKE_SOURCE_DIR}/khronos/headers)
include_directories(${CMAKE_SOURCE_DIR}/khronos/headers/opencl2.2)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options("-Wno-ignored-attributes")
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR
(CMAKE_${COMPILER}_COMPILER_ID MATCHES "Clang"))
add_definitions(
# Enabling -Wextra or -pedantic will cause
# thousands of warnings. Keep things simple for now.
-Wall
# 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)
endif()
if(UNIX)