File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,8 @@ endif()
126
126
# Silence some warnings
127
127
if (MSVC )
128
128
# 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)
130
131
if (CMAKE_C_COMPILER_ID MATCHES Clang)
131
132
target_compile_options (wolfssl PRIVATE $<$<COMPILE_LANGUAGE:C>:-Wno-incompatible-function-pointer-types>)
132
133
endif ()
Original file line number Diff line number Diff line change @@ -1874,13 +1874,13 @@ static enum json_types smart_read_value(json_engine_t *je,
1874
1874
* value_len = (int ) ((char * ) je -> s .c_str - * value );
1875
1875
}
1876
1876
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 );
1884
1884
1885
1885
return (enum json_types ) je -> value_type ;
1886
1886
Original file line number Diff line number Diff line change @@ -20,3 +20,4 @@ ADD_DEFINITIONS(${SSL_DEFINES})
20
20
SET (VIO_SOURCES vio.c viosocket.c viossl.c viopipe.c viosslfactories.c)
21
21
ADD_CONVENIENCE_LIBRARY(vio ${VIO_SOURCES} )
22
22
TARGET_LINK_LIBRARIES (vio ${LIBSOCKET} )
23
+ TARGET_LINK_LIBRARIES (vio ${SSL_LIBRARIES} )
You can’t perform that action at this time.
0 commit comments