Skip to content

Commit

Permalink
Only disable warning if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrykobets-msft committed Sep 8, 2023
1 parent 395bf1e commit 1634b75
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ if(MSVC) # MSVC or simulating MSVC
-Wno-deprecated # False positive in MSVC Clang 15.0.1 raises a C++17 warning
>
>
-Wno-unsafe-buffer-usage # This test uses very loose and blanket heuristics such as "no pointer arithmetic on raw buffer"
$<$<COMPILE_FLAG:-Wno-unsafe-buffer-usage>:
-Wno-unsafe-buffer-usage # This test uses very loose and blanket heuristics such as "no pointer arithmetic on raw buffer"
>
>
)
check_cxx_compiler_flag("-Wno-reserved-identifier" WARN_RESERVED_ID)
Expand Down Expand Up @@ -252,7 +254,9 @@ if(MSVC) # MSVC or simulating MSVC
-Wno-deprecated # False positive in MSVC Clang 15.0.1 raises a C++17 warning
>
>
-Wno-unsafe-buffer-usage # This test uses very loose and blanket heuristics such as "no pointer arithmetic on raw buffer"
$<$<COMPILE_FLAG:-Wno-unsafe-buffer-usage>:
-Wno-unsafe-buffer-usage # This test uses very loose and blanket heuristics such as "no pointer arithmetic on raw buffer"
>
>
)
check_cxx_compiler_flag("-Wno-reserved-identifier" WARN_RESERVED_ID)
Expand Down

0 comments on commit 1634b75

Please sign in to comment.