summary refs log tree commit diff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2013-05-10 10:00:52 +0100
committerPeter Stephenson <pws@zsh.org>2013-05-10 10:00:52 +0100
commitd88bd1409ee2958fe38b2f3ff62401a16fe226b4 (patch)
treef611dd624db9d1f616d106f049d7128f50076460
parent2405b0ac0cc296cc492b8665112e6d05e863b09f (diff)
downloadzsh-d88bd1409ee2958fe38b2f3ff62401a16fe226b4.tar.gz
zsh-d88bd1409ee2958fe38b2f3ff62401a16fe226b4.tar.xz
zsh-d88bd1409ee2958fe38b2f3ff62401a16fe226b4.zip
Unused function attribute fix for clang compilation
-rw-r--r--ChangeLog5
-rw-r--r--Src/zsh_system.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c072fe20..87bad2006 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-10  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* Mihai Moldovan <ionic@ionic.de>: 31387: Src/zsh_system.h:
+	unused functions when compiling with clang.
+
 2013-05-05  Frank Terbeck  <ft@bewatermyfriend.org>
 
 	* unposted: Src/exec.c: Revert "31372: Do not block SIGWINCH for
diff --git a/Src/zsh_system.h b/Src/zsh_system.h
index f38533023..e68fd62f9 100644
--- a/Src/zsh_system.h
+++ b/Src/zsh_system.h
@@ -773,7 +773,7 @@ extern short ospeed;
 # define IS_DIRSEP(c) ((c) == '/')
 #endif
 
-#if defined(__GNUC__) && !defined(__APPLE__)
+#if defined(__GNUC__) && (!defined(__APPLE__) || defined(__clang__))
 /* Does the OS X port of gcc still gag on __attribute__? */
 #define UNUSED(x) x __attribute__((__unused__))
 #else