mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
Define the new UNUSED() macro for marking function parameters.
This commit is contained in:
parent
235db6ec00
commit
30a139fe89
@ -680,3 +680,10 @@ extern short ospeed;
|
||||
#else
|
||||
# define IS_DIRSEP(c) ((c) == '/')
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && !defined(APPLE)
|
||||
/* Does the OS X port of gcc still gag on __attribute__? */
|
||||
#define UNUSED(x) x __attribute__((__unused__))
|
||||
#else
|
||||
#define UNUSED(x) x
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user