Skip to content

Commit

Permalink
m4/ax_run_or_link_ifelse.m4: C++ does not support -Werror=implicit-fu…
Browse files Browse the repository at this point in the history
…nction-declaration [networkupstools#2109, networkupstools#2096 fallout]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Oct 16, 2023
1 parent 304d41e commit 1a7c3a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion m4/ax_run_or_link_ifelse.m4
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ AC_DEFUN([AX_RUN_OR_LINK_IFELSE],
myCFLAGS="$CFLAGS"
myCXXFLAGS="$CXXFLAGS"
CFLAGS="$myCFLAGS -Werror -Werror=implicit-function-declaration $4"
CXXFLAGS="$myCXXFLAGS -Werror -Werror=implicit-function-declaration $5"
dnl # cc1plus: error: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ [-Werror]
CXXFLAGS="$myCXXFLAGS -Werror $5"
AC_RUN_IFELSE([$1], [$2], [$3],
[
AC_MSG_WARN([Current build is a cross-build, so not running test binaries, just linking them])
Expand Down

0 comments on commit 1a7c3a7

Please sign in to comment.