1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 06:56:05 +02:00

Unused function attribute fix for clang compilation

This commit is contained in:
Mihai Moldovan 2013-05-10 10:00:52 +01:00 committed by Peter Stephenson
parent 2405b0ac0c
commit d88bd1409e
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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