Skip to content

Commit

Permalink
Merge pull request #258 from Yashinde145/fix_inline_error_DEBUG_yashi…
Browse files Browse the repository at this point in the history
…nde145

Fix function inline errors in debug optimization (-Og)
  • Loading branch information
rgerhards authored Jul 4, 2023
2 parents 568336c + 6d575d9 commit 4b60c89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ if test "$enable_debug" = "no"; then
AC_DEFINE(NDEBUG, 1, [Defined if debug mode is disabled.])
fi

#Compiler does not inline any functions when not optimizing(-Og).
#Hence, remove -Winline flag when DEBUG is enabled.
#ifdef DEBUG
WARN_CFLAGS="$(echo "$WARN_CFLAGS" | sed s/-Winline//g)"
#endif

# valgrind
AC_ARG_ENABLE(valgrind,
[AS_HELP_STRING([--enable-valgrind],[Enable valgrind tests@<:@default=yes@:>@])],
Expand Down

0 comments on commit 4b60c89

Please sign in to comment.