diff --git a/CMakeLists.txt b/CMakeLists.txt index 47f1299..125dc22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,6 +103,7 @@ SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} /wd4334") # result of 32-bit shift implici SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} /wd4456") # hide previous local declaration SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} /wd4459") # hide global declaration SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} /wd4706") # assignment within conditional expression +SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} /wd4090") # different 'const' qualifier (TODO: debug ls-sfparser.c) SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -W4 -WX -Zi -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -I${CMAKE_CURRENT_SOURCE_DIR}/wincompat") IF(CMAKE_BUILD_TYPE STREQUAL "Debug") SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -Od") diff --git a/src/liblsquic/lsquic_handshake.c b/src/liblsquic/lsquic_handshake.c index 90d607b..871d24b 100644 --- a/src/liblsquic/lsquic_handshake.c +++ b/src/liblsquic/lsquic_handshake.c @@ -11,6 +11,8 @@ #include #include #include +#else +#include #endif #include @@ -1977,7 +1979,7 @@ gen_rej1_data (struct lsquic_enc_session *enc_session, uint8_t *data, #ifndef WIN32 char prof_buf[prof_len]; #else - prof_buf = _malloca(prof_len); + char *prof_buf = _malloca(prof_len); if (!prof_buf) return -1; #endif diff --git a/tests/test_h3_framing.c b/tests/test_h3_framing.c index 4578eb8..d6bc74d 100644 --- a/tests/test_h3_framing.c +++ b/tests/test_h3_framing.c @@ -1223,11 +1223,11 @@ test_frame_header_split (unsigned n_packets, unsigned extra_sz, const ssize_t w = lsquic_stream_write(stream, buf_in, buf_in_sz); assert(w >= 0 && (size_t) w == buf_in_sz); n_frames = count_hq_frames(stream); - assert(n_frames == 1 + (w > 0)); + assert((int) n_frames == 1 + (w > 0)); lsquic_stream_flush(stream); n_frames = count_hq_frames(stream); - assert(n_frames == !!stream->sm_n_buffered); + assert((int) n_frames == !!stream->sm_n_buffered); if (add_one_more) {