Fixed compilation warnings. Added -Wall to linux-gcc compilation. JSON_ASSERT_MESSAGE now throws exception (but JSON_ASSERT does not).
diff --git a/src/jsontestrunner/main.cpp b/src/jsontestrunner/main.cpp
index 98cd8fd..1d8b303 100644
--- a/src/jsontestrunner/main.cpp
+++ b/src/jsontestrunner/main.cpp
@@ -13,12 +13,12 @@
if ( !file )
return std::string("");
fseek( file, 0, SEEK_END );
- int size = ftell( file );
+ long size = ftell( file );
fseek( file, 0, SEEK_SET );
std::string text;
char *buffer = new char[size+1];
buffer[size] = 0;
- if ( fread( buffer, 1, size, file ) == size )
+ if ( fread( buffer, 1, size, file ) == (unsigned long)size )
text = buffer;
fclose( file );
delete[] buffer;