Bug #5625 ยป cch.diff
usr/src/uts/common/sys/ccompile.h-unu Thu Mar 12 20:01:20 2015 | ||
---|---|---|
20 | 20 |
* CDDL HEADER END |
21 | 21 |
*/ |
22 | 22 |
/* |
23 |
* Copyright 2015 Gary Mills |
|
23 | 24 |
* Copyright 2004 Sun Microsystems, Inc. All rights reserved. |
24 | 25 |
* Use is subject to license terms. |
25 | 26 |
*/ |
... | ... | |
100 | 101 |
#endif |
101 | 102 | |
102 | 103 |
/* |
104 |
* Mark an unused variable |
|
105 |
*/ |
|
106 |
#if __GNUC_VERSION >= 40100 |
|
107 |
#define __sun_attr___unused__ __attribute__((__unused__)) |
|
108 |
#else |
|
109 |
#define __sun_attr___unused__ |
|
110 |
#endif |
|
111 | ||
112 |
/* |
|
103 | 113 |
* This is an appropriate label for functions that do not |
104 | 114 |
* modify their arguments, e.g. strlen() |
105 | 115 |
*/ |
... | ... | |
139 | 149 |
#define __RETURNS_TWICE __sun_attr__((__returns_twice__)) |
140 | 150 |
#define __CONST __sun_attr__((__const__)) |
141 | 151 |
#define __PURE __sun_attr__((__pure__)) |
142 |
#define __GNU_UNUSED __attribute__((__unused__))
|
|
152 |
#define __GNU_UNUSED __sun_attr__((__unused__))
|
|
143 | 153 | |
144 | 154 |
#ifdef __cplusplus |
145 | 155 |
} |