Bugfix/double float promotion warnings (#605)
* Fixed compile warnings from double-float promotions. * Changed zephyr compile to suppress deprecation warnings * Fixed CreateObject API return value in many objects header files * Changed zephyr build defines as strdup is no longer required for log print of strings
This commit is contained in:
@@ -5,8 +5,7 @@
|
||||
#
|
||||
|
||||
zephyr_compile_definitions(
|
||||
_POSIX_C_SOURCE=200809 # Expose `strdup()` for bacfile, ao, bo, mso
|
||||
CONFIG_NEWLIB_LIBC # Choose library providing `strdup()` impl.
|
||||
BACNET_STACK_DEPRECATED_DISABLE
|
||||
)
|
||||
|
||||
zephyr_sources(device.c)
|
||||
|
||||
@@ -46,6 +46,7 @@ if(BOARD STREQUAL unit_testing)
|
||||
${BACNET_SRC}/bactext.c
|
||||
${BACNET_SRC}/indtext.c
|
||||
${BACNET_SRC}/lighting.c
|
||||
${BACNET_SRC}/proplist.c
|
||||
${BACNET_SRC}/wp.c
|
||||
${BACNET_SRC}/cov.c
|
||||
${BACNET_SRC}/memcopy.c
|
||||
|
||||
@@ -46,6 +46,7 @@ if(BOARD STREQUAL unit_testing)
|
||||
${BACNET_SRC}/bactext.c
|
||||
${BACNET_SRC}/indtext.c
|
||||
${BACNET_SRC}/lighting.c
|
||||
${BACNET_SRC}/proplist.c
|
||||
${BACNET_SRC}/wp.c
|
||||
${BACNET_SRC}/hostnport.c
|
||||
${BACNET_SRC}/dailyschedule.c
|
||||
|
||||
Reference in New Issue
Block a user