Author: kib
Date: Sun Jan  1 23:34:06 2012
New Revision: 229238
URL: http://svn.freebsd.org/changeset/base/229238

Log:
  MFC r227656:
  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.

Modified:
  stable/9/sys/sys/param.h
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/sys/param.h
==============================================================================
--- stable/9/sys/sys/param.h    Sun Jan  1 23:33:08 2012        (r229237)
+++ stable/9/sys/sys/param.h    Sun Jan  1 23:34:06 2012        (r229238)
@@ -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_ */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to