Mercurial > vim
diff src/vim.h @ 1876:932ff0c0f57b v7.2.173
updated for version 7.2-173
author | vimboss |
---|---|
date | Thu, 14 May 2009 20:20:33 +0000 |
parents | f13849167330 |
children | 1a8b518bb993 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -262,6 +262,14 @@ # define __PARMS(x) __ARGS(x) #endif +/* Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter + * can be used to check for mistakes. */ +#ifdef HAVE_ATTRIBUTE_UNUSED +# define UNUSED __attribute__((unused)) +#else +# define UNUSED +#endif + /* if we're compiling in C++ (currently only KVim), the system * headers must have the correct prototypes or nothing will build. * conversely, our prototypes might clash due to throw() specifiers and