1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 01:27:11 +03:00

bus/rtnl: silence clang warnings

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2013-11-19 21:12:38 +01:00 committed by Tom Gundersen
parent 0617ffabe8
commit d7726e578a
2 changed files with 2 additions and 2 deletions

View File

@ -307,4 +307,4 @@ char *bus_address_escape(const char *v);
* bus from the callback doesn't destroy the object we are working * bus from the callback doesn't destroy the object we are working
* on */ * on */
#define BUS_DONT_DESTROY(bus) \ #define BUS_DONT_DESTROY(bus) \
_cleanup_bus_unref_ sd_bus *_dont_destroy_##bus = sd_bus_ref(bus) _cleanup_bus_unref_ _unused_ sd_bus *_dont_destroy_##bus = sd_bus_ref(bus)

View File

@ -80,4 +80,4 @@ int socket_read_message(sd_rtnl *nl, sd_rtnl_message **ret);
/* Make sure callbacks don't destroy the rtnl connection */ /* Make sure callbacks don't destroy the rtnl connection */
#define RTNL_DONT_DESTROY(rtnl) \ #define RTNL_DONT_DESTROY(rtnl) \
_cleanup_sd_rtnl_unref_ sd_rtnl *_dont_destroy_##rtnl = sd_rtnl_ref(rtnl) _cleanup_sd_rtnl_unref_ _unused_ sd_rtnl *_dont_destroy_##rtnl = sd_rtnl_ref(rtnl)