blob: 6a9e125dde944d34372ecb643813025e2f180219 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/**
* @file compiler/unused.h
*/
#ifndef PRISM_COMPILER_UNUSED_H
#define PRISM_COMPILER_UNUSED_H
/**
* GCC will warn if you specify a function or parameter that is unused at
* runtime. This macro allows you to mark a function or parameter as unused in a
* compiler-agnostic way.
*/
#if defined(__GNUC__)
# define PRISM_UNUSED __attribute__((unused))
#else
# define PRISM_UNUSED
#endif
#endif
|