../../test/internals/assertions.c: In function ‘test_assert_error_is_set’:
../../test/internals/assertions.c:82:14: warning: unused variable ‘ep’ [-Wunused-variable]
82 | DBusError *ep = NULL;
| ^~
../../test/internals/assertions.c:81:13: warning: unused variable ‘e’ [-Wunused-variable]
81 | DBusError e = DBUS_ERROR_INIT;
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
test_assert_error_is_set (Fixture *f,
gconstpointer context G_GNUC_UNUSED)
{
+#if defined(DBUS_ENABLE_ASSERT) && defined(DBUS_ENABLE_CHECKS)
DBusError e = DBUS_ERROR_INIT;
DBusError *ep = NULL;
-#if defined(DBUS_ENABLE_ASSERT) && defined(DBUS_ENABLE_CHECKS)
if (!g_test_undefined ())
{
g_test_skip ("Not testing programming errors");