Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Don't use the workaround for unused function parameters when compiling with clang on OS X.
- X-seq: zsh-workers 31387
- From: Mihai Moldovan <ionic@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Don't use the workaround for unused function parameters when compiling with clang on OS X.
- Date: Thu, 09 May 2013 15:16:08 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ionic.de; s=default; t=1368105372; bh=JSwGsY8hay1AR/qa5B1jBaiMKUNtG/hOLn5uTmTx2X8=; h=Date:From:To:Subject:From; b=nr+N6/49znDJKaIPLUAAI3cv9JTepSQWLUiQPoftuBbQRF7rRY3ba1FJ8jy70fUHo Zzkyhd4W7aDegLwdbXH2U+RarW8tYe7UbnIF0VpK/FEmPk42+PP8OWYKtlXl2LIREE Y/E+okgqThhzablZawNZSxR5H1piJi9L7K1hFits=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Signed-off-by: Mihai Moldovan <ionic@xxxxxxxx>
---
Src/zsh_system.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Src/zsh_system.h b/Src/zsh_system.h
index f385330..e68fd62 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
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author