Bugfix/bacnet array encoding overflows (#414)
* Add common BACnetARRAY encode function to fix Device object list buffer overflow. Refactor device, analog-output, access-door and binary-output objects to use common BACnetARRAY encoder. * Fix non-POSIX builds (win32). * Cleanup some ports/stm32 build warnings --------- Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -158,13 +158,14 @@ CFLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing
|
||||
CFLAGS += -fno-builtin
|
||||
# place uninitialized global variables in the data section of the object file.
|
||||
CFLAGS += -fno-common
|
||||
WARNING_ALL := -Wall
|
||||
# enable all relevant warnings that find bugs
|
||||
WARNING_ALL := -Wall -Wextra -Wall -Wfloat-equal -Wconversion -Wparentheses
|
||||
WARNING_ALL += -pedantic -Wunused-parameter -Wunused-variable -Wreturn-type
|
||||
WARNING_ALL += -Wunused-function -Wreturn-type -Wunused-value
|
||||
WARNING_ALL += -Wswitch-default -Wuninitialized -Winit-self
|
||||
WARNING_ALL += -Wno-sign-conversion -Wno-conversion -Wno-sign-compare
|
||||
WARNING_ALL += -Wno-long-long
|
||||
#WARNING_ALL += -pedantic -Wextra -Wfloat-equal -Wconversion -Wparentheses
|
||||
#WARNING_ALL += -Wunused-parameter -Wunused-variable -Wreturn-type
|
||||
#WARNING_ALL += -Wunused-function -Wreturn-type -Wunused-value
|
||||
#WARNING_ALL += -Wswitch-default -Wuninitialized -Winit-self
|
||||
#WARNING_ALL += -Wno-sign-conversion -Wno-conversion -Wno-sign-compare
|
||||
#WARNING_ALL += -Wno-long-long
|
||||
#WARNING_ALL += -Wredundant-decls
|
||||
#WARNING_ALL += -Werror
|
||||
CFLAGS += $(WARNING_ALL)
|
||||
@@ -174,7 +175,8 @@ CFLAGS += -Wno-missing-braces
|
||||
CFLAGS += -Wno-missing-prototypes
|
||||
# don't warn about array subscript being char
|
||||
CFLAGS += -Wno-char-subscripts
|
||||
|
||||
# FIXME later
|
||||
CFLAGS += -Wno-unused-parameter
|
||||
# -Wa,<options> Pass comma-separated <options> on to the assembler
|
||||
AFLAGS = -Wa,-ahls,-mapcs-32,-adhlns=$(<:.s=.lst)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user