Skip to content

Commit

Permalink
add -Wformat-security to AM_CFLAGS, AM_CFLAGS_STD
Browse files Browse the repository at this point in the history
  • Loading branch information
rockowitz committed Oct 9, 2024
1 parent df66273 commit 9fe2ae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9fe2ae7

Please sign in to comment.