mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-17 11:30: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.
This commit is contained in:
parent
6c2130382a
commit
ee29228277
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