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
This commit is contained in:
UnknownShadow200 2020-12-09 23:12:31 +11:00
parent a5f6150b45
commit fb9757252b
2 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,7 @@
<PrecompiledHeaderFile /> <PrecompiledHeaderFile />
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck> <BufferSecurityCheck>false</BufferSecurityCheck>
<TreatSpecificWarningsAsErrors>4716;4013</TreatSpecificWarningsAsErrors>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
@ -122,6 +123,7 @@
<PrecompiledHeaderFile /> <PrecompiledHeaderFile />
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck> <BufferSecurityCheck>false</BufferSecurityCheck>
<TreatSpecificWarningsAsErrors>4716;4013</TreatSpecificWarningsAsErrors>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
@ -147,6 +149,7 @@
<AdditionalOptions> <AdditionalOptions>
</AdditionalOptions> </AdditionalOptions>
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet> <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
<TreatSpecificWarningsAsErrors>4716;4013</TreatSpecificWarningsAsErrors>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
@ -176,6 +179,7 @@
<AdditionalOptions> <AdditionalOptions>
</AdditionalOptions> </AdditionalOptions>
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet> <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
<TreatSpecificWarningsAsErrors>4716;4013</TreatSpecificWarningsAsErrors>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>

View File

@ -82,6 +82,7 @@ double Math_FastLog(double x) {
/* so log(x) = exp*log(2) + log(mantissa) */ /* so log(x) = exp*log(2) + log(mantissa) */
/* now need to work out log(mantissa) */ /* now need to work out log(mantissa) */
return 0;
} }
double Math_FastExp(double x) { double Math_FastExp(double x) {
@ -91,6 +92,7 @@ double Math_FastExp(double x) {
/* so exp(x) = 2^k * exp(f) */ /* so exp(x) = 2^k * exp(f) */
/* now need to work out exp(f) */ /* now need to work out exp(f) */
return 0;
} }