diff --git a/CMakeLists.txt b/CMakeLists.txt index f8c9d070f..046d7114a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,8 +51,8 @@ set(THREADS_PREFER_PTHREAD_FLAG ON) # add_library(simdjson-flags INTERFACE) if(MSVC) - target_compile_options(simdjson-flags INTERFACE /nologo /D_CRT_SECURE_NO_WARNINGS) - target_compile_options(simdjson-flags INTERFACE /WX /W3 /wd4005 /wd4996 /wd4267 /wd4244 /wd4113) + target_compile_options(simdjson-flags INTERFACE /nologo) + target_compile_options(simdjson-flags INTERFACE /WX /W3 /wd4996 /wd4267 /wd4244) else() target_compile_options(simdjson-flags INTERFACE -fPIC) target_compile_options(simdjson-flags INTERFACE -Werror -Wall -Wextra -Wsign-compare -Wshadow -Wwrite-strings -Wpointer-arith -Winit-self) diff --git a/src/generic/stage2_build_tape.h b/src/generic/stage2_build_tape.h index 4dab3304c..1175eb818 100644 --- a/src/generic/stage2_build_tape.h +++ b/src/generic/stage2_build_tape.h @@ -105,8 +105,8 @@ public: const size_t len; const uint32_t* const structural_indexes; size_t next_structural; // next structural index - size_t idx; // location of the structural character in the input (buf) - uint8_t c; // used to track the (structural) character we are looking at + size_t idx{0}; // location of the structural character in the input (buf) + uint8_t c{0}; // used to track the (structural) character we are looking at }; struct structural_parser {