From c935c41d1f2969dae860cdb16127779d2970a0e3 Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Thu, 23 Feb 2012 22:52:57 -0600 Subject: [PATCH 1/1] Explicitly set unsigned long array size in GUID union. Otherwise GCC complains about array access out of bounds, even though the char part of the union ensures adequate size. Signed-off-by: Scott Wood --- include/c++/orb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/c++/orb.h b/include/c++/orb.h index 716b186..fa2f548 100644 --- a/include/c++/orb.h +++ b/include/c++/orb.h @@ -43,7 +43,7 @@ namespace System { union GUID { unsigned char c[16]; - unsigned long l[]; + unsigned long l[16 / sizeof(unsigned long)]; }; uintptr_t downcast(::System::_i_Object *obj, const GUID *new_guid); -- 2.39.2