From fb9757252b997a3e37a329818f0af8ea2d6e5b7f Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 9 Dec 2020 23:12:31 +1100 Subject: [PATCH] Visual Studio: Always treat warnings 4716 (Function doesn't return a value) and 4013 (implicit function declaration) as errors Easy to do by accident and is a mistake 99.5% of the time --- src/ClassiCube.vcxproj | 4 ++++ src/ExtMath.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/ClassiCube.vcxproj b/src/ClassiCube.vcxproj index 5b819ca8b..befcbd881 100644 --- a/src/ClassiCube.vcxproj +++ b/src/ClassiCube.vcxproj @@ -101,6 +101,7 @@ MultiThreadedDebug false + 4716;4013 Windows @@ -122,6 +123,7 @@ MultiThreadedDebug false + 4716;4013 Windows @@ -147,6 +149,7 @@ NoExtensions + 4716;4013 Windows @@ -176,6 +179,7 @@ NoExtensions + 4716;4013 Windows diff --git a/src/ExtMath.c b/src/ExtMath.c index 894c48720..b37fa472b 100644 --- a/src/ExtMath.c +++ b/src/ExtMath.c @@ -82,6 +82,7 @@ double Math_FastLog(double x) { /* so log(x) = exp*log(2) + log(mantissa) */ /* now need to work out log(mantissa) */ + return 0; } double Math_FastExp(double x) { @@ -91,6 +92,7 @@ double Math_FastExp(double x) { /* so exp(x) = 2^k * exp(f) */ /* now need to work out exp(f) */ + return 0; }