[systemd-devel] [PATCH] bus/rtnl: silence warnings with clang

Tom Gundersen teg at jklm.no
Wed Nov 20 03:42:58 PST 2013


On Wed, Nov 20, 2013 at 7:48 AM, Thomas H.P. Andersen <phomes at gmail.com> wrote:
> Hi Tom,
>
> Sorry. Git send-email is just giving me error messages right now. I
> have attached the patch instead.

Thanks! Applied.

-t
> On Wed, Nov 20, 2013 at 1:12 AM, Tom Gundersen <teg at jklm.no> wrote:
>> Hi Thomas,
>>
>> I'm not able to apply this patch, could you please resend using git-send-email?
>>
>> Cheers,
>>
>> Tom
>>
>> On Tue, Nov 19, 2013 at 10:16 PM, Thomas H.P. Andersen <phomes at gmail.com> wrote:
>>> ---
>>>  src/libsystemd-bus/bus-internal.h   | 2 +-
>>>  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 4f9d941..faed183 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 c8a97da..a229ae7 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)
>>> --
>>> 1.8.4.2
>>> _______________________________________________
>>> systemd-devel mailing list
>>> systemd-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list