diff options
author | Toomas Soome <tsoome@me.com> | 2017-08-08 09:57:30 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2017-08-30 20:09:33 -0400 |
commit | c81a25e9d3950dc5fab08d21f8be56d463b32c7a (patch) | |
tree | f2e2bd01d99cc7c73af758806f0600997da84408 | |
parent | f9feecc12f00b97b49d542398fb3b5a452da0bbc (diff) | |
download | illumos-joyent-c81a25e9d3950dc5fab08d21f8be56d463b32c7a.tar.gz |
8572 ccompile.h: rename __GNU_UNUSED to __unused
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/common/bzip2/compress.c | 2 | ||||
-rw-r--r-- | usr/src/lib/libmvec/common/__vcos.c | 2 | ||||
-rw-r--r-- | usr/src/lib/libmvec/common/__vsin.c | 2 | ||||
-rw-r--r-- | usr/src/lib/libmvec/common/__vsincos.c | 2 | ||||
-rw-r--r-- | usr/src/uts/common/sys/ccompile.h | 2 | ||||
-rw-r--r-- | usr/src/uts/common/sys/modctl.h | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/common/bzip2/compress.c b/usr/src/common/bzip2/compress.c index 15b5fd6904..84f0b09335 100644 --- a/usr/src/common/bzip2/compress.c +++ b/usr/src/common/bzip2/compress.c @@ -241,7 +241,7 @@ void sendMTFValues ( EState* s ) { Int32 v, t, i, j, gs, ge, totc, bt, bc, iter; Int32 nSelectors, alphaSize, minLen, maxLen, selCtr; - Int32 nGroups, __GNU_UNUSED nBytes; + Int32 nGroups, nBytes __unused; /*-- UChar len [BZ_N_GROUPS][BZ_MAX_ALPHA_SIZE]; diff --git a/usr/src/lib/libmvec/common/__vcos.c b/usr/src/lib/libmvec/common/__vcos.c index 28f40c50d5..cf2b5fee55 100644 --- a/usr/src/lib/libmvec/common/__vcos.c +++ b/usr/src/lib/libmvec/common/__vcos.c @@ -102,7 +102,7 @@ __vcos(int n, double * restrict x, int stridex, double * restrict y, double x0, x1, x2, *py0 = 0, *py1 = 0, *py2, *xsave, *ysave; unsigned hx0, hx1, hx2, xsb0, xsb1 = 0, xsb2; int i, biguns, nsave, sxsave, sysave; - volatile int v __GNU_UNUSED; + volatile int v __unused; nsave = n; xsave = x; sxsave = stridex; diff --git a/usr/src/lib/libmvec/common/__vsin.c b/usr/src/lib/libmvec/common/__vsin.c index 3b024aa2cc..04e3c0a4a6 100644 --- a/usr/src/lib/libmvec/common/__vsin.c +++ b/usr/src/lib/libmvec/common/__vsin.c @@ -82,7 +82,7 @@ __vsin(int n, double * restrict x, int stridex, double * restrict y, double x0, x1, x2, *py0 = 0, *py1 = 0, *py2, *xsave, *ysave; unsigned hx0, hx1, hx2, xsb0, xsb1 = 0, xsb2; int i, biguns, nsave, sxsave, sysave; - volatile int v __GNU_UNUSED; + volatile int v __unused; nsave = n; xsave = x; sxsave = stridex; diff --git a/usr/src/lib/libmvec/common/__vsincos.c b/usr/src/lib/libmvec/common/__vsincos.c index 23fc1b5889..4db5f5a004 100644 --- a/usr/src/lib/libmvec/common/__vsincos.c +++ b/usr/src/lib/libmvec/common/__vsincos.c @@ -99,7 +99,7 @@ __vsincos(int n, double * restrict x, int stridex, *xsave, *ysave, *csave; unsigned hx0, hx1, hx2, xsb0, xsb1, xsb2; int i, biguns, nsave, sxsave, sysave, scsave; - volatile int v __GNU_UNUSED; + volatile int v __unused; nsave = n; xsave = x; sxsave = stridex; diff --git a/usr/src/uts/common/sys/ccompile.h b/usr/src/uts/common/sys/ccompile.h index 17f62413f8..91f99b2962 100644 --- a/usr/src/uts/common/sys/ccompile.h +++ b/usr/src/uts/common/sys/ccompile.h @@ -152,7 +152,7 @@ extern "C" { #define __RETURNS_TWICE __sun_attr__((__returns_twice__)) #define __CONST __sun_attr__((__const__)) #define __PURE __sun_attr__((__pure__)) -#define __GNU_UNUSED __sun_attr__((__unused__)) +#define __unused __sun_attr__((__unused__)) #ifdef __cplusplus } diff --git a/usr/src/uts/common/sys/modctl.h b/usr/src/uts/common/sys/modctl.h index 391768d5a5..fe7f812358 100644 --- a/usr/src/uts/common/sys/modctl.h +++ b/usr/src/uts/common/sys/modctl.h @@ -513,7 +513,7 @@ typedef struct modctl { char mod_delay_unload; /* deferred unload */ struct modctl_list *mod_requisites; /* mods this one depends on. */ - void *__unused; /* NOTE: reuse (same size) is OK, */ + void *mod_unused; /* NOTE: reuse (same size) is OK, */ /* deletion causes mdb.vs.core issues */ int mod_loadcnt; /* number of times mod was loaded */ int mod_nenabled; /* # of enabled DTrace probes in mod */ |