If you are happy with supporting a couple of specific compilers, you could
define a macro UNUSED.
For example, int foo(int p, UNUSED int q)
with a prior
#define UNUSED __attribute__((__unused__))
for gcc, and some similar definitions for other compilers that support this
feature.
That would be better than commenting out parameters. For compilers that do
not support annotations, you can just define the macro as empty (#define
UNUSED) so it has no effect.
Richard Heck wrote:
On 11/26/2013 10:29 AM, Kornel Benko wrote:
Am Dienstag, 26. November 2013 um 10:08:27, schrieb Richard Heck
<[email protected]>
>
> The file_lock argument to the new file_unlock routine seems to be unused.
It's only there, to be prepared for maybe different future API.
We could comment it out.
Perhaps for now.
rh
--
Regards,
Cyrille Artho - http://artho.com/
Love is the delusion that one woman differs from another.
-- H.L. Mencken