summaryrefslogtreecommitdiffstats
path: root/include/unused.h
blob: 7b40190a69fda4c9dfa8a2be11c8dcc56d02d9ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef UNUSED_H
#define UNUSED_H

/* http://sourcefrog.net/weblog/software/languages/C/unused.html */

#ifdef UNUSED
#elif defined(__GNUC__)
# define UNUSED(x) UNUSED_ ## x __attribute__((unused))
#elif defined(__LCLINT__)
# define UNUSED(x) /*@unused@*/ x
#else
# define UNUSED(x) x
#endif

#endif