Enable the use of some warnings when building HIP-ROCclr
Similar to http://gerrit-git.amd.com/c/compute/ec/vdi/+/375385, except no -Wno-strict-aliasing.
With this change only two warnings show up during the build - -Wsign-compare and -Wmisleading-indentation.
Change-Id: Iffa436c65ab6312aeaa6def71ee6af38ed1b4a4e
[ROCm/clr commit: 509a38f50c]
This commit is contained in:
کامیت شده توسط
Vladislav Sytchenko
والد
17bf7b0138
کامیت
e5f959ce02
@@ -21,8 +21,17 @@ if(CMAKE_BUILD_TYPE MATCHES "^Debug$")
|
||||
add_definitions(-DDEBUG)
|
||||
endif()
|
||||
|
||||
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()
|
||||
|
||||
set(USE_PROF_API "1")
|
||||
|
||||
مرجع در شماره جدید
Block a user