Skip to content

Commit bcd02c7

Browse files
committed
Merge branch '10.6' into 10.11
2 parents db18808 + aba04c5 commit bcd02c7

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

extra/wolfssl/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ endif()
126126
# Silence some warnings
127127
if(MSVC)
128128
# truncation warnings
129-
target_compile_options(wolfssl PRIVATE $<$<COMPILE_LANGUAGE:C>:/wd4244>)
129+
target_compile_options(wolfssl PRIVATE $<$<COMPILE_LANGUAGE:C>:/wd4244 /wd5287 /wd5286>)
130+
target_compile_definitions(wolfssl PUBLIC WC_NO_STATIC_ASSERT)
130131
if(CMAKE_C_COMPILER_ID MATCHES Clang)
131132
target_compile_options(wolfssl PRIVATE $<$<COMPILE_LANGUAGE:C>:-Wno-incompatible-function-pointer-types>)
132133
endif()

strings/json_lib.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,13 +1874,13 @@ static enum json_types smart_read_value(json_engine_t *je,
18741874
*value_len= (int) ((char *) je->s.c_str - *value);
18751875
}
18761876

1877-
compile_time_assert((int) JSON_VALUE_OBJECT == (int) JSV_OBJECT);
1878-
compile_time_assert((int) JSON_VALUE_ARRAY == (int) JSV_ARRAY);
1879-
compile_time_assert((int) JSON_VALUE_STRING == (int) JSV_STRING);
1880-
compile_time_assert((int) JSON_VALUE_NUMBER == (int) JSV_NUMBER);
1881-
compile_time_assert((int) JSON_VALUE_TRUE == (int) JSV_TRUE);
1882-
compile_time_assert((int) JSON_VALUE_FALSE == (int) JSV_FALSE);
1883-
compile_time_assert((int) JSON_VALUE_NULL == (int) JSV_NULL);
1877+
compile_time_assert((enum json_types)JSON_VALUE_OBJECT == JSV_OBJECT);
1878+
compile_time_assert((enum json_types)JSON_VALUE_ARRAY == JSV_ARRAY);
1879+
compile_time_assert((enum json_types)JSON_VALUE_STRING == JSV_STRING);
1880+
compile_time_assert((enum json_types)JSON_VALUE_NUMBER == JSV_NUMBER);
1881+
compile_time_assert((enum json_types)JSON_VALUE_TRUE == JSV_TRUE);
1882+
compile_time_assert((enum json_types)JSON_VALUE_FALSE == JSV_FALSE);
1883+
compile_time_assert((enum json_types)JSON_VALUE_NULL == JSV_NULL);
18841884

18851885
return (enum json_types) je->value_type;
18861886

vio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ ADD_DEFINITIONS(${SSL_DEFINES})
2020
SET(VIO_SOURCES vio.c viosocket.c viossl.c viopipe.c viosslfactories.c)
2121
ADD_CONVENIENCE_LIBRARY(vio ${VIO_SOURCES})
2222
TARGET_LINK_LIBRARIES(vio ${LIBSOCKET})
23+
TARGET_LINK_LIBRARIES(vio ${SSL_LIBRARIES})

0 commit comments

Comments
 (0)