mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-09 12:37:18 -04:00
Merge pull request #20 from TakaRikka/26-02-25-warning-fixes
Warning fixes
This commit is contained in:
@@ -32,6 +32,12 @@ elseif (MSVC)
|
||||
add_compile_options(/MP)
|
||||
if (NOT DUSK_BUILD_WARNINGS)
|
||||
add_compile_options(/W0)
|
||||
else ()
|
||||
# Disable warnings
|
||||
add_compile_options(/wd4068) # unknown pragma
|
||||
add_compile_options(/wd4291) # no matching delete operator, leaks if exception thrown
|
||||
# Only show warnings once
|
||||
add_compile_options(/wo4244) # narrowing conversion, possible data loss
|
||||
endif ()
|
||||
add_compile_options(/utf-8)
|
||||
endif ()
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
|
||||
#ifndef __MWERKS__
|
||||
#include <limits>
|
||||
#if !defined(FLT_EPSILON)
|
||||
#define FLT_EPSILON std::numeric_limits<float>::epsilon()
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace JGeometry {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user