summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-05-14 20:20:33 +0000
committerBram Moolenaar <Bram@vim.org>2009-05-14 20:20:33 +0000
commit0c094b9d7f8a031e2cb495551ecc13e34cfa5818 (patch)
tree660d6095585ed5291454a77e6246ec4ecbc71fe6 /src/vim.h
parentd30f9d92c4e03fd1a132e3440253eb92b5c7b3e4 (diff)
downloadvim-git-0c094b9d7f8a031e2cb495551ecc13e34cfa5818.tar.gz
updated for version 7.2-173v7.2.173
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index a9a940bbd..979f435be 100644
--- 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