- parameter swirly

- warning level 4 is better
This commit is contained in:
Enno Rehling 2010-02-25 16:46:54 +00:00
parent bfca1580b9
commit 222d754da5
6 changed files with 18 additions and 5 deletions

View File

@ -52,7 +52,7 @@
RuntimeLibrary="3" RuntimeLibrary="3"
UsePrecompiledHeader="2" UsePrecompiledHeader="2"
PrecompiledHeaderThrough="stdafx.h" PrecompiledHeaderThrough="stdafx.h"
WarningLevel="3" WarningLevel="4"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
DebugInformationFormat="4" DebugInformationFormat="4"
/> />

View File

@ -2,7 +2,11 @@
#include <platform.h> #include <platform.h>
#include "stdafx.h" #include "stdafx.h"
#pragma warning(push)
#pragma warning(disable: 4244)
#pragma warning(disable: 4127)
#include <external/sqlite3.c> #include <external/sqlite3.c>
#pragma warning(pop)
#include <external/md5.c> #include <external/md5.c>
#include <external/bson/bson.c> #include <external/bson/bson.c>
#include <external/bson/numbers.c> #include <external/bson/numbers.c>

View File

@ -19,4 +19,5 @@ void RunAllTests(void) {
int main(int argc, char **argv) { int main(int argc, char **argv) {
RunAllTests(); RunAllTests();
return 0;
} }

View File

@ -52,7 +52,7 @@
RuntimeLibrary="3" RuntimeLibrary="3"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
PrecompiledHeaderThrough="stdafx.h" PrecompiledHeaderThrough="stdafx.h"
WarningLevel="3" WarningLevel="4"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
DebugInformationFormat="4" DebugInformationFormat="4"
/> />
@ -197,6 +197,14 @@
<File <File
RelativePath="..\external\cutest\CuTest.c" RelativePath="..\external\cutest\CuTest.c"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath=".\tests.c" RelativePath=".\tests.c"

View File

@ -52,7 +52,7 @@
RuntimeLibrary="3" RuntimeLibrary="3"
UsePrecompiledHeader="2" UsePrecompiledHeader="2"
PrecompiledHeaderThrough="stdafx.h" PrecompiledHeaderThrough="stdafx.h"
WarningLevel="3" WarningLevel="4"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
DebugInformationFormat="4" DebugInformationFormat="4"
/> />

View File

@ -297,7 +297,7 @@ static struct curse_type ct_magicresistance = {
*/ */
static int static int
read_skill(struct storage * store, void * target, curse * c) read_skill(struct storage * store, curse * c, void * target)
{ {
int skill; int skill;
if (store->version<CURSETYPE_VERSION) { if (store->version<CURSETYPE_VERSION) {
@ -312,7 +312,7 @@ read_skill(struct storage * store, void * target, curse * c)
} }
static int static int
write_skill(struct storage * store, const void * target, const curse * c) write_skill(struct storage * store, const curse * c, const void * target)
{ {
store->w_int(store, c->data.i); store->w_int(store, c->data.i);
return 0; return 0;