Skip to content

Commit

Permalink
Use -fno-new-ttp-matching only when it is supported (#256)
Browse files Browse the repository at this point in the history
Not all compilers supported `-fno-new-ttp-matching` that literally
broke tcpflow on macOS where clang is default and expected compiler.
  • Loading branch information
catap committed Jul 26, 2023
1 parent f11eb8f commit 5ca444e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -70,7 +70,7 @@ case $host in
;;

*)
CXXFLAGS="$CXXFLAGS -Wno-address-of-packed-member -fno-new-ttp-matching"
CXXFLAGS="$CXXFLAGS -Wno-address-of-packed-member"
;;
esac

Expand Down
1 change: 1 addition & 0 deletions m4/slg_gcc_all_warnings.m4
Expand Up @@ -79,6 +79,7 @@ CXX_WARNINGS_TO_TEST="-Wall -MD -D_FORTIFY_SOURCE=2 -Wpointer-arith \
-Wredundant-decls -Wdisabled-optimization \
-Wfloat-equal -Wmultichar -Wmissing-noreturn \
-Woverloaded-virtual -Wsign-promo \
-fno-new-ttp-matching \
-funit-at-a-time"

if test x"${mingw}" != "xyes" ; then
Expand Down

0 comments on commit 5ca444e

Please sign in to comment.