Mercurial > hg > xemacs-beta
diff src/compiler.h @ 4962:e813cf16c015
merge
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Mon, 01 Feb 2010 05:29:05 -0600 |
parents | 8b63e21b0436 b3ce27ca7647 |
children | cbe181529c34 |
line wrap: on
line diff
--- a/src/compiler.h Sun Jan 31 21:11:44 2010 -0600 +++ b/src/compiler.h Mon Feb 01 05:29:05 2010 -0600 @@ -250,6 +250,13 @@ # endif #endif /* UNUSED */ +/* Declaration that variable or expression X is "used" to defeat + "unused variable" warnings. DON'T DO THIS FOR PARAMETERS IF IT ALL + POSSIBLE. Use an UNUSED() or USED_IF_*() declaration on the parameter + instead. Don't do this for unused local variables that should really + just be deleted. */ +#define USED(x) ((void) (x)) + #ifdef DEBUG_XEMACS # define REGISTER # define register