Skip to content

Commit

Permalink
Remove warning as error for useless cast for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kohnech committed Oct 8, 2023
1 parent cfcde43 commit 775daca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ endif()
#-------------------
# compiler settings
#-------------------
if(NOT ENABLE_WEBASSEMBLY)
if (UNIX AND NOT APPLE)
add_compile_options(-Wuseless-cast # warn if you perform a cast to the same type
-Werror # Make the specified warning into an error.
)
endif()
endif()
#if(NOT ENABLE_WEBASSEMBLY)
# if (UNIX AND NOT APPLE)
# add_compile_options(-Wuseless-cast # warn if you perform a cast to the same type
# -Werror # Make the specified warning into an error.
# )
# endif()
#endif()

if (MSVC)
add_compile_options(/W4)
Expand Down

0 comments on commit 775daca

Please sign in to comment.