Skip to content

Commit

Permalink
configure: add -Wno-error=stringop-overflow also to CXXFLAGS
Browse files Browse the repository at this point in the history
Also c++ programs need -Wno-error=stringop-overflow flag, in order to
avoid errors during linking, when using LTO.

Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
  • Loading branch information
JereLeppanen committed Oct 27, 2023
1 parent fcb66b9 commit 81e7bc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ AS_IF([test "$GCC" == yes],
AS_IF([test `$CC -dumpversion | cut -d '.' -f 1` -ge 10],
ODP_CHECK_CFLAG([-Wno-error=array-bounds])
ODP_CHECK_CFLAG([-Wno-error=stringop-overflow])
ODP_CHECK_CXXFLAG([-Wno-error=stringop-overflow])
)
)

Expand Down

0 comments on commit 81e7bc1

Please sign in to comment.