Fix mac build maybe

This commit is contained in:
Corentin Jabot 2021-09-10 14:05:35 +02:00
parent 25394c4cdd
commit eb092224f4
2 changed files with 1 additions and 2 deletions

View file

@ -34,7 +34,6 @@ function(set_project_warnings)
set(CLANG_WARNINGS set(CLANG_WARNINGS
-Wall -Wall
-Wextra # reasonable and standard -Wextra # reasonable and standard
-Wshadow # warn the user if a variable declaration shadows one from a parent context
-Wnon-virtual-dtor # warn the user if a class with virtual functions has a non-virtual destructor. This helps -Wnon-virtual-dtor # warn the user if a class with virtual functions has a non-virtual destructor. This helps
# catch hard to track down memory errors # catch hard to track down memory errors
-Wold-style-cast # warn for c-style casts -Wold-style-cast # warn for c-style casts

View file

@ -9,7 +9,7 @@ It is not a C++ file and is not part of this course!
namespace pacman { namespace pacman {
double scaling_factor_for_window(sf::WindowHandle handle) { double scaling_factor_for_window(sf::WindowHandle handle) {
return [ (id) handle backingScaleFactor]; return [ static_cast<id>(handle backingScaleFactor)];
} }
} }