[bind10-dev] UNUSED_PARAM macro

Jelte Jansen jelte at isc.org
Tue Apr 20 08:21:12 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

I've just looked at ticket #115, the bulk its changeset is moving
UNUSED_PARAM from .h files to .cc files, and it might be worth a note here:

Don't put UNUSED_PARAM in header files (yes i've done this too, shame on
me).

This is a macro that depends on "config.h" and we don't want to include
that in our headers. So if you have a function that has an unused
parameter, always define the function in the cc file, even if the
function is trivial or essentially empty.

Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvNY/gACgkQ4nZCKsdOncWBFgCfY2875pFsJEKxsUS/TC3vDhAz
uncAnjZlGLr29hBw2DUzpRgrAayJzd+a
=NWcW
-----END PGP SIGNATURE-----



More information about the bind10-dev mailing list