[exim-dev] [Bug 2916] dsearch erroneously requires read perm…

Pàgina inicial
Delete this message
Reply to this message
Autor: admin
Data:  
A: exim-dev
Assumpte: [exim-dev] [Bug 2916] dsearch erroneously requires read permission
https://bugs.exim.org/show_bug.cgi?id=2916

--- Comment #7 from Martin Kealey <from-exim-bugzilla@???> ---
The UNUSED macro is to silence the compiler warnings.
The problem is, different compilers have different tricks to achieve this.
GCC and some others accept a suffix like __attribute__((unused)) after the
parameter name; some accept a magic parameter name like __UNUSED__; and some
simply accept a parameter with its name omitted (like a prototype); some simply
don't complain in the first place, in which case an ordinary parameter will
suffice. Others require a redundant «param=param;» statement, or some kind of
#pragma.

Having a parameterized UNUSED macro allows the appropriate method to be
selected at least among the first 4 kinds.

--
You are receiving this mail because:
You are on the CC list for the bug.