diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-11-19 21:12:38 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-11-20 12:42:43 +0100 |
commit | d7726e578a1e4218c769d436c1a23174d1aed92d (patch) | |
tree | 46ee1736912ad4c9439068cdbb43c3f8242ba96f /src | |
parent | 0617ffabe86a6d366252477eafbe59a888b149d4 (diff) |
bus/rtnl: silence clang warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-bus/bus-internal.h | 2 | ||||
-rw-r--r-- | src/libsystemd-rtnl/rtnl-internal.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h index 4f9d941c63..faed183990 100644 --- a/src/libsystemd-bus/bus-internal.h +++ b/src/libsystemd-bus/bus-internal.h @@ -307,4 +307,4 @@ char *bus_address_escape(const char *v); * bus from the callback doesn't destroy the object we are working * on */ #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) diff --git a/src/libsystemd-rtnl/rtnl-internal.h b/src/libsystemd-rtnl/rtnl-internal.h index c8a97da398..a229ae77ad 100644 --- a/src/libsystemd-rtnl/rtnl-internal.h +++ b/src/libsystemd-rtnl/rtnl-internal.h @@ -80,4 +80,4 @@ int socket_read_message(sd_rtnl *nl, sd_rtnl_message **ret); /* Make sure callbacks don't destroy the rtnl connection */ #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) |