diff options
author | Simon McVittie <smcv@collabora.com> | 2018-07-23 17:19:53 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2018-08-02 15:24:55 +0100 |
commit | 09300a5e6f7a3cedf5c60728cdfda50cf2e81904 (patch) | |
tree | 7aedbeb0c641b7ba7f93c670e70b07dbd281d581 /dbus/dbus-test.h | |
parent | b387bd4d2916416f1376fe9feeee61e557d571de (diff) | |
download | dbus-09300a5e6f7a3cedf5c60728cdfda50cf2e81904.tar.gz |
test: Fix signature of dbus_internal_do_not_use_try_message_file
In gcc 8, -Wall -Wextra includes -Wcast-function-type, which warns
about casting a function pointer to an incompatible type. In this
case the cast was because we were ignoring the void * argument, which
in this case is NULL. Since this function is only used within
dbus-message-util.c anyway, we might as well just use the correct
signature and remove the cast.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107349
Reviewed-by: Thiago Macieira <thiago@kde.org>
Diffstat (limited to 'dbus/dbus-test.h')
-rw-r--r-- | dbus/dbus-test.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/dbus/dbus-test.h b/dbus/dbus-test.h index 113aded4..dcffd8a1 100644 --- a/dbus/dbus-test.h +++ b/dbus/dbus-test.h @@ -99,8 +99,6 @@ dbus_bool_t _dbus_credentials_test (const char *test_data_dir); void _dbus_run_tests (const char *test_data_dir, const char *specific_test); -dbus_bool_t dbus_internal_do_not_use_try_message_file (const DBusString *filename, - DBusValidity expected_validity); dbus_bool_t dbus_internal_do_not_use_try_message_data (const DBusString *data, DBusValidity expected_validity); dbus_bool_t dbus_internal_do_not_use_load_message_file (const DBusString *filename, |