svn commit: r229238 - stable/9/sys/sys

Konstantin Belousov kib at FreeBSD.org
Sun Jan 1 23:34:06 UTC 2012


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_ */


More information about the svn-src-stable mailing list