mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 09:18:12 +02:00
test: fix unused variable warnings
../../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>
This commit is contained in:
parent
f2cf41e1ae
commit
708dd5a55e
1 changed files with 1 additions and 1 deletions
|
|
@ -78,10 +78,10 @@ static void
|
|||
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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue