Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 23:34:06 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229238 - stable/9/sys/sys
Message-ID:  <201201012334.q01NY6Pr037046@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201012334.q01NY6Pr037046>