Skip to content

Commit

Permalink
Warnings MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Oct 22, 2023
1 parent ba7b799 commit 1fba838
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ endif()
if(WIN32)
#code is position-independent by default on Windows
set(FPIC_FLAG "")
add_compile_options(/wd4244 /wd4267) # lossy conversions
add_compile_options(/wd4996) # "unsafe" functions
endif()
if(NOT WIN32 OR CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${OPT_FLAG} ${CMAKE_C_FLAGS} -fPIC -std=c99 -Wall -Wextra")
Expand Down

0 comments on commit 1fba838

Please sign in to comment.