diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-05-14 20:20:33 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-05-14 20:20:33 +0000 |
commit | 0c094b9d7f8a031e2cb495551ecc13e34cfa5818 (patch) | |
tree | 660d6095585ed5291454a77e6246ec4ecbc71fe6 /src/vim.h | |
parent | d30f9d92c4e03fd1a132e3440253eb92b5c7b3e4 (diff) | |
download | vim-git-0c094b9d7f8a031e2cb495551ecc13e34cfa5818.tar.gz |
updated for version 7.2-173v7.2.173
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |