mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-22 16:20:46 +02:00
shared: add define _nm_unused for __attribute__((unused))
This is both supported by clang and gcc. Using it is nicer then
casting the (void), which requires an additional line of code.
(cherry picked from commit ee29228277)
This commit is contained in:
parent
b952f54cb1
commit
77ba50c2a6
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
/********************************************************/
|
||||
|
||||
#define _nm_packed __attribute__ ((packed))
|
||||
#define _nm_unused __attribute__ ((unused))
|
||||
|
||||
#define nm_auto(fcn) __attribute__ ((cleanup(fcn)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue