Silence useless warning on Windows (#183)

This commit is contained in:
Bohdan Shulyar 2021-06-18 05:42:43 +03:00 committed by GitHub
parent 662af50306
commit 7552c1df5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ endif()
if(NOT MSVC)
#add_compile_options(-Wempty-body) # GCC/Clang flag
add_compile_options(-Wreturn-type) # GCC/Clang flag
else()
add_definitions(-D_CRT_SILENCE_NONCONFORMING_TGMATH_H)
endif()