From eb092224f48a4cfdcaf83f6959d2fef1da099a1d Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Fri, 10 Sep 2021 14:05:35 +0200 Subject: [PATCH] Fix mac build maybe --- cmake/CompilerWarnings.cmake | 1 - scaling-lib/Scaling.mm | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 8ff7cd4..b156223 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -34,7 +34,6 @@ function(set_project_warnings) set(CLANG_WARNINGS -Wall -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 # catch hard to track down memory errors -Wold-style-cast # warn for c-style casts diff --git a/scaling-lib/Scaling.mm b/scaling-lib/Scaling.mm index 9e08f53..73a03bb 100644 --- a/scaling-lib/Scaling.mm +++ b/scaling-lib/Scaling.mm @@ -9,7 +9,7 @@ It is not a C++ file and is not part of this course! namespace pacman { double scaling_factor_for_window(sf::WindowHandle handle) { - return [ (id) handle backingScaleFactor]; + return [ static_cast(handle backingScaleFactor)]; } } \ No newline at end of file