Skip to content

Commit

Permalink
MSVC: Silence data-loss warnings in FreeType
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Dec 17, 2024
1 parent 3829ecd commit 7afd9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.13)
project(jngl LANGUAGES C CXX)

if(MSVC)
string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus /wd4244 /wd4305")
string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus /wd4244 /wd4305 /wd4267")
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=implicit-function-declaration")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fdiagnostics-color")
Expand Down

0 comments on commit 7afd9e8

Please sign in to comment.