From d946905a01d42189490caa455cd188aa6c75aadb Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Sun, 21 Aug 2016 20:37:37 +0200 Subject: [PATCH 18/21] Fix remaining warnings from compiler option '-Wredundant-decls' Signed-off-by: Thomas Zimmermann [smcv: omit the part involving environ, which was more involved] Reviewed-by: Simon McVittie Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97357 --- configure.ac | 1 - dbus/dbus-marshal-basic.h | 1 - dbus/dbus-pending-call-internal.h | 2 -- dbus/dbus-sysdeps-win.h | 2 -- dbus/dbus-sysdeps.h | 3 --- 5 files changed, 9 deletions(-) diff --git a/configure.ac b/configure.ac index 42fbd16..93c9e44 100644 --- a/configure.ac +++ b/configure.ac @@ -1361,7 +1361,6 @@ dnl TODO: The compiler flags below disable warnings that the dnl compiler emits while building dbus. Fix the source dnl code and remove these flags. DISABLE_WARNINGS="$DISABLE_WARNINGS - -Wno-redundant-decls -Wno-suggest-attribute=format -Wno-suggest-attribute=noreturn -Wno-shadow diff --git a/dbus/dbus-marshal-basic.h b/dbus/dbus-marshal-basic.h index 68ff348..0c4e411 100644 --- a/dbus/dbus-marshal-basic.h +++ b/dbus/dbus-marshal-basic.h @@ -214,7 +214,6 @@ dbus_uint32_t _dbus_marshal_read_uint32 (const DBusString *str, int byte_order, int *new_pos); int _dbus_type_get_alignment (int typecode); -int _dbus_type_get_alignment (int typecode); DBUS_PRIVATE_EXPORT const char* _dbus_type_to_string (int typecode); diff --git a/dbus/dbus-pending-call-internal.h b/dbus/dbus-pending-call-internal.h index 393e660..a6d7fba 100644 --- a/dbus/dbus-pending-call-internal.h +++ b/dbus/dbus-pending-call-internal.h @@ -46,8 +46,6 @@ void _dbus_pending_call_set_reply_unlocked (DBusPendingCal DBusMessage *message); void _dbus_pending_call_queue_timeout_error_unlocked (DBusPendingCall *pending, DBusConnection *connection); -void _dbus_pending_call_set_reply_serial_unlocked (DBusPendingCall *pending, - dbus_uint32_t serial); dbus_bool_t _dbus_pending_call_set_timeout_error_unlocked (DBusPendingCall *pending, DBusMessage *message, dbus_uint32_t serial); diff --git a/dbus/dbus-sysdeps-win.h b/dbus/dbus-sysdeps-win.h index 0b5d8f0..b8861a1 100644 --- a/dbus/dbus-sysdeps-win.h +++ b/dbus/dbus-sysdeps-win.h @@ -82,8 +82,6 @@ _dbus_win_sid_to_name_and_domain (dbus_uid_t uid, wchar_t **wdomain, DBusError *error); -dbus_bool_t _dbus_file_exists (const char *filename); - DBUS_PRIVATE_EXPORT dbus_bool_t _dbus_get_install_root (DBusString *str); diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h index a2dac6c..3603093 100644 --- a/dbus/dbus-sysdeps.h +++ b/dbus/dbus-sysdeps.h @@ -666,9 +666,6 @@ dbus_pid_t _dbus_getpid (void); DBUS_PRIVATE_EXPORT dbus_uid_t _dbus_getuid (void); -dbus_bool_t _dbus_change_to_daemon_user (const char *user, - DBusError *error); - DBUS_PRIVATE_EXPORT void _dbus_flush_caches (void); -- 2.9.3