mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
SCP: Avoid potential buffer overflow using sprintf
- avoid warnings about snprintf truncation As reported in #717
This commit is contained in:
3
makefile
3
makefile
@@ -1175,6 +1175,9 @@ ifneq (3,$(GCC_MAJOR_VERSION))
|
||||
ifneq (,$(findstring -Wunused-result,$(shell $(GCC_WARNINGS_CMD))))
|
||||
CFLAGS_O += -Wno-unused-result
|
||||
endif
|
||||
ifneq (,$(findstring -Wformat-truncation,$(shell $(GCC_WARNINGS_CMD))))
|
||||
CFLAGS_O += -Wno-format-truncation
|
||||
endif
|
||||
endif
|
||||
ifneq (clean,$(MAKECMDGOALS))
|
||||
BUILD_FEATURES := $(BUILD_FEATURES). $(COMPILER_NAME)
|
||||
|
||||
Reference in New Issue
Block a user