summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-11-18 09:05:25 +0000
committerkib <kib@FreeBSD.org>2011-11-18 09:05:25 +0000
commit6332d67cd9b3ba8b163b2d90c5e405684ba4d052 (patch)
tree0cbcf827aa3bb8f395666fb369a5602f06c45ae9 /sys/sys
parentd7e31282cbf39565f9d1bf3405dc89fab7508362 (diff)
downloadFreeBSD-src-6332d67cd9b3ba8b163b2d90c5e405684ba4d052.zip
FreeBSD-src-6332d67cd9b3ba8b163b2d90c5e405684ba4d052.tar.gz
Use the alternate form of the gcc extension that works even with
-ansi -pedantic without issuing a warning, and which is recommended by gcc manual. MFC after: 1 week
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/param.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 893061a..d2ead83 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -324,6 +324,6 @@ __END_DECLS
* Access a variable length array that has been declared as a fixed
* length array.
*/
-#define __PAST_END(array, offset) (((typeof(*(array)) *)(array))[offset])
+#define __PAST_END(array, offset) (((__typeof__(*(array)) *)(array))[offset])
#endif /* _SYS_PARAM_H_ */
OpenPOWER on IntegriCloud