diff --git a/CMakeLists.txt b/CMakeLists.txt index c0b54675..994504f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,5 +7,9 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) +if(MSVC) + add_definitions(-D_CRT_SECURE_NO_WARNINGS -W4) +endif() + add_subdirectory(src) add_subdirectory(test) \ No newline at end of file diff --git a/src/Internals/QuotedString.cpp b/src/Internals/QuotedString.cpp index 0f32afa2..02a70850 100644 --- a/src/Internals/QuotedString.cpp +++ b/src/Internals/QuotedString.cpp @@ -50,7 +50,7 @@ static char unescapeChar(char c) const char* p = "b\bf\fn\nr\rt\t"; - while (true) + for (;;) { if (p[0] == 0) return c; if (p[0] == c) return p[1];