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:
Thomas Haller 2016-05-12 09:58:36 +02:00
parent 6c2130382a
commit ee29228277

View file

@ -27,6 +27,7 @@
/********************************************************/
#define _nm_packed __attribute__ ((packed))
#define _nm_unused __attribute__ ((unused))
#define nm_auto(fcn) __attribute__ ((cleanup(fcn)))