about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-06-02 18:11:43 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-06-02 18:11:43 +0000
commit30a139fe894f76ad256281b60a36c693bc561245 (patch)
treeab0edbab1a4f411ac9c965a5fad3f1a983ecb689
parent235db6ec007b98484ebc5a9af349d38f64381c1d (diff)
downloadzsh-30a139fe894f76ad256281b60a36c693bc561245.tar.gz
zsh-30a139fe894f76ad256281b60a36c693bc561245.tar.xz
zsh-30a139fe894f76ad256281b60a36c693bc561245.zip
Define the new UNUSED() macro for marking function parameters.
-rw-r--r--Src/system.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/system.h b/Src/system.h
index f03d890c4..1c1de8da3 100644
--- a/Src/system.h
+++ b/Src/system.h
@@ -680,3 +680,10 @@ extern short ospeed;
 #else
 # define IS_DIRSEP(c) ((c) == '/')
 #endif
+
+#if defined(__GNUC__) && !defined(APPLE)
+/* Does the OS X port of gcc still gag on __attribute__? */
+#define UNUSED(x) x __attribute__((__unused__))
+#else
+#define UNUSED(x) x
+#endif