Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2011 09:05:25 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227656 - head/sys/sys
Message-ID:  <201111180905.pAI95PC9062480@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Nov 18 09:05:25 2011
New Revision: 227656
URL: http://svn.freebsd.org/changeset/base/227656

Log:
  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

Modified:
  head/sys/sys/param.h

Modified: head/sys/sys/param.h
==============================================================================
--- head/sys/sys/param.h	Fri Nov 18 09:01:08 2011	(r227655)
+++ head/sys/sys/param.h	Fri Nov 18 09:05:25 2011	(r227656)
@@ -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?201111180905.pAI95PC9062480>