From dfed525e18f80a73288e7ba6c6807faa550b0e86 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 16 Oct 2016 23:18:56 +0200 Subject: [PATCH] macOS warnings and build fix --- src/CMakeLists.txt | 4 ++-- src/r_segs.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a900b6352..89341cfa7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -272,8 +272,8 @@ if( NOT NO_OPENAL ) endif() endif() -set( LLVM_COMPONENTS core support asmparser asmprinter bitreader codegen passes ipo - irreader transformutils instrumentation profiledata debuginfocodeview runtimedyld +set( LLVM_COMPONENTS core support asmparser asmprinter bitreader codegen ipo + irreader transformutils instrumentation profiledata runtimedyld object instcombine linker analysis selectiondag scalaropts vectorize executionengine mc mcdisassembler mcparser mcjit target x86asmprinter x86info x86desc x86utils x86codegen ) diff --git a/src/r_segs.cpp b/src/r_segs.cpp index cbff7d6e9..0f723f9be 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -1142,7 +1142,7 @@ WallscanSampler::WallscanSampler(int y1, float swal, double yrepeat, fixed_t xof } else { - double magnitude = abs(uv_stepd * 2); + double magnitude = fabs(uv_stepd * 2); bool magnifying = magnitude < 1.0f; int mipmap_offset = 0;