Commit 5574a63b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(UNUSED_H_CONCAT): New macro.

(UNUSED): Mangle the name of the supposedly unused argument, so
	that the compiler will report errors if it actually is used.
parent 7f4dcec4
......@@ -19,8 +19,9 @@
#ifndef UNUSED_H
#define UNUSED_H
#define UNUSED_H_CONCAT(a, b) a ## b
#ifdef HAVE_ATTRIBUTE_UNUSED
# define UNUSED(var) var __attribute__((unused))
# define UNUSED(var) UNUSED_H_CONCAT(qazwsxedc, var) __attribute__((unused))
#else
# if defined(__cplusplus)
# define UNUSED(var)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment