Enable /WX, warning as error on Visual Studio

This commit is contained in:
Christophe Riccio
2017-08-17 19:51:03 +02:00
parent 23db2cd8b9
commit e9f210c85f
15 changed files with 192 additions and 178 deletions

View File

@@ -1,22 +1,7 @@
struct vec4
{
static int length();
};
int vec4::length()
{
return 4;
}
int main()
{
int Failed = 0;
int Error = 0;
vec4 V;
int LengthA = V.length();
int LengthB = vec4::length();
return Failed;
return Error;
}