Fix warnings during unit testing of BACnet secure connect node. (#1182)

This commit is contained in:
Steve Karg
2025-12-09 09:34:28 -06:00
committed by GitHub
parent b1c6a0e74b
commit 95cdec459e
39 changed files with 3206 additions and 36179 deletions
+5 -4
View File
@@ -27,7 +27,8 @@ set(ZTST_DIR "${TST_DIR}/ztest/src")
add_compile_definitions(
BIG_ENDIAN=0
CONFIG_ZTEST=1
BACDL_BSC
BACDL_BSC=1
BACNET_STACK_DEPRECATED_DISABLE=1
BSC_CONF_HUB_FUNCTION_CONNECTIONS_NUM=4
BSC_CONF_NODE_SWITCH_CONNECTIONS_NUM=4
BSC_CONF_WSURL_MAX_LEN=128
@@ -46,7 +47,7 @@ include_directories(
if(ZEPHYR_BASE)
message(FATAL_ERROR "ZEPHYR_BASE env variable defined. Use zephyr/CMakeLists.txt for Zephyr build")
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
message(STATUS "BACNet/SC hub function test: building for linux")
message(STATUS "BACnet/SC hub function test: building for linux")
set(BACNET_PORT_DIRECTORY_PATH ${CMAKE_CURRENT_LIST_DIR}/ports/linux)
add_compile_definitions(BACNET_PORT=linux)
find_package(libwebsockets CONFIG REQUIRED)
@@ -67,7 +68,7 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
-Wno-language-extension-token
)
elseif(WIN32)
message(STATUS "BACNet/SC hub function test: building for win32")
message(STATUS "BACnet/SC hub function test: building for win32")
set(BACNET_PORT_DIRECTORY_PATH ${CMAKE_CURRENT_LIST_DIR}/ports/win32)
add_compile_definitions(BACNET_PORT=win32)
add_compile_definitions(BACNET_STACK_STATIC_DEFINE)
@@ -113,7 +114,7 @@ elseif(WIN32)
)
elseif(APPLE)
message(STATUS "BACNet/SC hub function test: building for APPLE")
message(STATUS "BACnet/SC hub function test: building for APPLE")
set(BACNET_PORT_DIRECTORY_PATH ${CMAKE_CURRENT_LIST_DIR}/ports/bsd)
execute_process (
COMMAND bash -c "brew --prefix openssl"