Skip to content

Commit

Permalink
build: fix spellos in configure.ac
Browse files Browse the repository at this point in the history
"safe" is the antonym to "unsafe", but it's not like CFLAGS is unsafe.
You really want "saved" here.

Fixes: sssd-1_13_1-169-g6b01dae73
  • Loading branch information
jengelh committed Oct 21, 2024
1 parent d004e7b commit 2d95396
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ AS_IF([! $PKG_CONFIG --atleast-version 1.0.0 dbus-1], [
])

AS_IF([test x$has_dbus != xno], [
SAFE_LIBS="$LIBS"
SAVED_LIBS="$LIBS"
LIBS="$DBUS_LIBS"
SAFE_CFLAGS=$CFLAGS
SAVED_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $DBUS_CFLAGS"
AC_CHECK_FUNC([dbus_watch_get_unix_fd],
Expand All @@ -312,8 +312,8 @@ AS_IF([test x$has_dbus != xno], [
[],
[ #include <dbus/dbus.h> ])
LIBS="$SAFE_LIBS"
CFLAGS=$SAFE_CFLAGS
LIBS="$SAVED_LIBS"
CFLAGS=$SAVED_CFLAGS
])

# work around a bug in cov-build from Coverity
Expand Down Expand Up @@ -478,7 +478,7 @@ AS_IF([test x"$sss_cv_attribute_warn_unused_result" = xyes], [
[whether compiler supports __attribute__((warn_unused_result))])
])

SAFE_CFLAGS=$CFLAGS
SAVED_CFLAGS=$CFLAGS
CFLAGS="-Werror"
AC_CACHE_CHECK(
[whether compiler supports __attribute__((fallthrough))],
Expand All @@ -504,7 +504,7 @@ AC_CACHE_CHECK(
sss_cv_attribute_fallthrough_val="((void)0)"
])
])
CFLAGS=$SAFE_CFLAGS
CFLAGS=$SAVED_CFLAGS

AC_DEFINE_UNQUOTED(
[SSS_ATTRIBUTE_FALLTHROUGH],
Expand Down

0 comments on commit 2d95396

Please sign in to comment.