zsh-workers
 help / color / mirror / code / Atom feed
From: Mihai Moldovan <ionic@ionic.de>
To: zsh-workers@zsh.org
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	[thread overview]
Message-ID: <518BA198.6080006@ionic.de> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 133 bytes --]


Signed-off-by: Mihai Moldovan <ionic@ionic.de>
---
 Src/zsh_system.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Don-t-use-the-workaround-for-unused-function-paramet.patch --]
[-- Type: text/x-patch; name="0001-Don-t-use-the-workaround-for-unused-function-paramet.patch", Size: 460 bytes --]

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 #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4506 bytes --]

             reply	other threads:[~2013-05-09 13:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-09 13:16 Mihai Moldovan [this message]
2013-05-09 14:43 ` Lawrence Velázquez
2013-05-10 17:41   ` Mihai Moldovan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=518BA198.6080006@ionic.de \
    --to=ionic@ionic.de \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).