Skip to content

Commit 8d1e89d

Browse files
authored
[Misc][ROCm] Enforce no unused variable in ROCm C++ files (#19796)
Signed-off-by: Lu Fang <lufang@fb.com>
1 parent 36239f7 commit 8d1e89d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/utils.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ function (get_torch_gpu_compiler_flags OUT_GPU_FLAGS GPU_LANG)
122122
"-DENABLE_FP8"
123123
"-U__HIP_NO_HALF_CONVERSIONS__"
124124
"-U__HIP_NO_HALF_OPERATORS__"
125+
"-Werror=unused-variable"
125126
"-fno-gpu-rdc")
126127

127128
endif()

0 commit comments

Comments
 (0)