From c8877e608045d284fa9066c19a8b0c814d456eb4 Mon Sep 17 00:00:00 2001 From: cyy Date: Fri, 28 Apr 2023 02:39:17 +0000 Subject: [PATCH] enable some cuda warnings (#95568) Currently some CUDA warnings are disabled due to some old issues of code quality that are fixed now. So it is time to remove the suppression. Pull Request resolved: https://github.com/pytorch/pytorch/pull/95568 Approved by: https://github.com/albanD --- cmake/public/cuda.cmake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmake/public/cuda.cmake b/cmake/public/cuda.cmake index 68de16b5a0d..6117041ae72 100644 --- a/cmake/public/cuda.cmake +++ b/cmake/public/cuda.cmake @@ -329,14 +329,11 @@ list(APPEND CUDA_NVCC_FLAGS ${NVCC_FLAGS_EXTRA}) message(STATUS "Added CUDA NVCC flags for: ${NVCC_FLAGS_EXTRA}") # disable some nvcc diagnostic that appears in boost, glog, glags, opencv, etc. -foreach(diag cc_clobber_ignored integer_sign_change useless_using_declaration +foreach(diag cc_clobber_ignored set_but_not_used field_without_dll_interface base_class_has_different_dll_interface dll_interface_conflict_none_assumed dll_interface_conflict_dllexport_assumed - implicit_return_from_non_void_function - unsigned_compare_with_zero - declared_but_not_referenced bad_friend_decl) list(APPEND SUPPRESS_WARNING_FLAGS --diag_suppress=${diag}) endforeach()