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>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
  • Loading branch information
JereLeppanen committed Dec 21, 2023
1 parent 013b0f8 commit f669ef5
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 f669ef5

Please sign in to comment.