[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Constrain the checks for GCC/ANSI to just those header files that



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1206983118 -3600
# Node ID da9bd2e81288225c8836e8083430ebcadf696f98
# Parent  615ee2933137e057e625ffdb9c84ace56d07881b
Constrain the checks for GCC/ANSI to just those header files that
require it.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/include/public/arch-ia64.h  |    4 ++++
 xen/include/public/hvm/save.h   |    4 ++++
 xen/include/public/xen-compat.h |    4 ----
 3 files changed, 8 insertions(+), 4 deletions(-)

diff -r 615ee2933137 -r da9bd2e81288 xen/include/public/arch-ia64.h
--- a/xen/include/public/arch-ia64.h    Mon Mar 31 17:43:18 2008 +0100
+++ b/xen/include/public/arch-ia64.h    Mon Mar 31 18:05:18 2008 +0100
@@ -27,6 +27,10 @@
 
 #ifndef __HYPERVISOR_IF_IA64_H__
 #define __HYPERVISOR_IF_IA64_H__
+
+#if !defined(__GNUC__) || defined(__STRICT_ANSI__)
+#error "Anonymous structs/unions are a GNU extension."
+#endif
 
 /* Structural guest handles introduced in 0x00030201. */
 #if __XEN_INTERFACE_VERSION__ >= 0x00030201
diff -r 615ee2933137 -r da9bd2e81288 xen/include/public/hvm/save.h
--- a/xen/include/public/hvm/save.h     Mon Mar 31 17:43:18 2008 +0100
+++ b/xen/include/public/hvm/save.h     Mon Mar 31 18:05:18 2008 +0100
@@ -39,6 +39,10 @@
  * Internal mechanisms should be kept in Xen-private headers.
  */
 
+#if !defined(__GNUC__) || defined(__STRICT_ANSI__)
+#error "Anonymous structs/unions are a GNU extension."
+#endif
+
 /* 
  * Each entry is preceded by a descriptor giving its type and length
  */
diff -r 615ee2933137 -r da9bd2e81288 xen/include/public/xen-compat.h
--- a/xen/include/public/xen-compat.h   Mon Mar 31 17:43:18 2008 +0100
+++ b/xen/include/public/xen-compat.h   Mon Mar 31 18:05:18 2008 +0100
@@ -41,8 +41,4 @@
 #error "These header files do not support the requested interface version."
 #endif
 
-#if defined(__GNUC__) && defined(__STRICT_ANSI__)
-#error "These headers files use GNU extensions when built with GCC."
-#endif
-
 #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.