From 9fe2ae76eb9bf6599783999299d89abb7505188c Mon Sep 17 00:00:00 2001 From: Sanford Rockowitz Date: Wed, 9 Oct 2024 15:56:02 -0400 Subject: [PATCH] add -Wformat-security to AM_CFLAGS, AM_CFLAGS_STD --- src/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 0b5ff918..cdd4d2fe 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -125,7 +125,8 @@ $(LIBUSB_CFLAGS) \ # # unused-result defined since at least gcc 5 -AM_CFLAGS = -Wall -std=c11 -Werror=unused-result +# format-security defined since gcc 2.95.3, Clang 4.0.0 +AM_CFLAGS = -Wall -std=c11 -Werror=unused-result -Wformat-security # Distributing -Werror is bad programming practice. It can result in build failure # on an external site having a different compiler, compiler version, or configuration.