Skip to content
  • Xavier Claessens's avatar
    Add G_*_AUTO_LOCK macros · 9e8f07b1
    Xavier Claessens authored
    It is common to declare a mutex locker variable and to not use it in the
    scope. That causes clang to warn about unused variable which is not
    entirely true since the cleanup function IS the intended usage.
    
    Work around that issue with a new macro that uses G_GNUC_UNUSED and
    has the extra advantage of being less verbose.
    
    Fixes: #3223.
    9e8f07b1