From ae126efdc4394e69cbb50b22210a49ce22ff88b6 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sun, 22 Nov 2015 20:56:57 +0100 Subject: [PATCH 6/7] Fix warning: "pointer targets in passing argument 1 of '_dbus_verbose_bytes' differ in signedness [-Wpointer-sign]". Bug: https://bugs.freedesktop.org/attachment.cgi?id=120024 --- dbus/dbus-marshal-basic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbus/dbus-marshal-basic.c b/dbus/dbus-marshal-basic.c index 601d4ec..ccf33c0 100644 --- a/dbus/dbus-marshal-basic.c +++ b/dbus/dbus-marshal-basic.c @@ -1386,7 +1386,7 @@ _dbus_verbose_bytes_of_string (const DBusString *str, d = _dbus_string_get_const_data_len (str, start, len); - _dbus_verbose_bytes (d, len, start); + _dbus_verbose_bytes ((unsigned char *) d, len, start); } static int @@ -1588,9 +1588,9 @@ swap_test_array (void *array, _dbus_verbose_bytes_of_string (&str, dump_pos, \ _dbus_string_get_length (&str) - dump_pos); \ _dbus_verbose ("LITERAL DATA\n"); \ - _dbus_verbose_bytes ((char*)literal, sizeof (literal), 0); \ + _dbus_verbose_bytes ((unsigned char*)literal, sizeof (literal), 0); \ _dbus_verbose ("READ DATA\n"); \ - _dbus_verbose_bytes ((char*)v_ARRAY_##typename, sizeof (literal), 0); \ + _dbus_verbose_bytes ((unsigned char*)v_ARRAY_##typename, sizeof (literal), 0); \ _dbus_assert_not_reached ("demarshaled wrong fixed array value"); \ } \ } while (0) -- 1.8.4.5