diff --git a/src/common/JPGLibrary.cxx b/src/common/JPGLibrary.cxx index fd0535482..80c346da8 100644 --- a/src/common/JPGLibrary.cxx +++ b/src/common/JPGLibrary.cxx @@ -43,7 +43,7 @@ void JPGLibrary::loadImage(const string& filename, FBSurface& surface, std::ifstream in(filename, std::ios_base::binary | std::ios::ate); if(!in.is_open()) loadImageERROR("No image found"); - size_t size = in.tellg(); + const size_t size = in.tellg(); in.clear(); in.seekg(0); diff --git a/src/nanojpeg/nanojpeg_lib.hxx b/src/nanojpeg/nanojpeg_lib.hxx index 9a6c144ea..78717a506 100644 --- a/src/nanojpeg/nanojpeg_lib.hxx +++ b/src/nanojpeg/nanojpeg_lib.hxx @@ -37,6 +37,7 @@ #pragma GCC diagnostic pop #elif defined(BSPF_WINDOWS) #pragma warning(push, 0) + #pragma warning(disable : 4706) #include "nanojpeg.c" #pragma warning(pop) #else diff --git a/src/windows/Stella.vcxproj b/src/windows/Stella.vcxproj index f2702112e..2b7ab6cd3 100755 --- a/src/windows/Stella.vcxproj +++ b/src/windows/Stella.vcxproj @@ -939,7 +939,6 @@ - CompileAsC CompileAsC @@ -2170,7 +2169,6 @@ - diff --git a/src/windows/Stella.vcxproj.filters b/src/windows/Stella.vcxproj.filters index d7ad6046c..75918ce8e 100644 --- a/src/windows/Stella.vcxproj.filters +++ b/src/windows/Stella.vcxproj.filters @@ -1155,9 +1155,6 @@ Source Files - - Header Files\nanojpeg - @@ -2393,9 +2390,6 @@ Header Files\nanojpeg - - Header Files\nanojpeg -