Skip to content

Commit

Permalink
Mute MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
liurui39660 committed Nov 22, 2020
1 parent 4ac5948 commit d6e7e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ENDIF()

IF(WIN32)
ADD_COMPILE_OPTIONS(/wd4244) # int to float may lose precision. Yes, yes, I know, it is on purpose
ADD_COMPILE_DEFINITIONS(_CRT_SECURE_NO_WARNINGS) # fopen(), fscanf(), ...
ELSEIF(UNIX)
ADD_COMPILE_OPTIONS(
-Wno-unused-result # I don't need the return value of fscanf() and system()
Expand Down

0 comments on commit d6e7e3f

Please sign in to comment.