Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unconditionally add -Wformat-security GCC/Clang option, remove GCC_FORMAT_SECURITY macro #191

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
by Clang. There are no supported systems with earlier GCC versions.
https://github.com/royhills/arp-scan/pull/190

* configure.ac: Unconditionally add -Wformat-security to GCC/Clang
compiler options instead of using the GCC_FORMAT_SECURITY macro.
https://github.com/royhills/arp-scan/pull/191

* m4/gcc-wextra.m4: Removed.

* m4/gcc-format-security.m4: Removed.

2024-08-14 Roy Hills <royhills@hotmail.com>

* get-iab: removed. This script is no longer needed and was depreciated
Expand Down
3 changes: 1 addition & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ fi
if test -n "$GCC"; then
AC_DEFINE([ATTRIBUTE_UNUSED], [__attribute__ ((__unused__))],
[Define to the compiler's unused pragma])
CFLAGS="$CFLAGS -Wall -Wextra -Wshadow -Wwrite-strings"
CFLAGS="$CFLAGS -Wall -Wextra -Wformat-security -Wshadow -Wwrite-strings"
GCC_STACK_PROTECT_CC
GCC_FORTIFY_SOURCE
GCC_FORMAT_SECURITY
# Uncomment the line below to compile with additional warnings enabled.
# CFLAGS="$CFLAGS -pedantic -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
else
Expand Down
29 changes: 0 additions & 29 deletions m4/gcc-format-security.m4

This file was deleted.

Loading