Mangle unused parameter names also on non-GCC platforms. This should help in situations where a coder starts using the previously
unused tagged parameter after all, reminding the coder to remove the tag and check further.
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
#ifdef __GNUC__
|
||||
# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
|
||||
#else
|
||||
# define UNUSED(x) x
|
||||
# define UNUSED(x) UNUSED_ ## x
|
||||
#endif
|
||||
|
||||
/* these values need to be hardcoded in structs, dna does not recognize defines */
|
||||
|
||||
Reference in New Issue
Block a user