From d88bd1409ee2958fe38b2f3ff62401a16fe226b4 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Fri, 10 May 2013 10:00:52 +0100 Subject: Unused function attribute fix for clang compilation --- Src/zsh_system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/zsh_system.h') 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 -- cgit 1.4.1