Explicit cast on array arguments in skeletons



can I check this in to HEAD?

-- 
   .--= ULLA! =---------------------.   `We are not here to give users what
   \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
    `---= cactus@cactus.rulez.org =---'
"A Linux csak akkor ingyenes, ha az időd nem kerül pénzbe" -- JWZ
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/ORBit2/ChangeLog,v
retrieving revision 1.286.2.41
diff -u -u -r1.286.2.41 ChangeLog
--- ChangeLog	16 Mar 2002 15:14:55 -0000	1.286.2.41
+++ ChangeLog	30 Mar 2002 22:05:14 -0000
@@ -1,3 +1,9 @@
+2002-03-30  ERDI Gergo  <cactus@cactus.rulez.org>
+
+	* src/idl-compiler/orbit-idl-c-utils.c (cs_small_unflatten_ref):
+	Explicitly cast array arguments to silence C++ compiler error
+	messages
+
 2002-03-16  ERDI Gergo  <cactus@cactus.rulez.org>
 
 	* src/idl-compiler/cpp/types/IDLType.cc: Don't use _forwarder
Index: src/idl-compiler/orbit-idl-c-utils.c
===================================================================
RCS file: /cvs/gnome/ORBit2/src/idl-compiler/orbit-idl-c-utils.c,v
retrieving revision 1.29.2.1
diff -u -u -r1.29.2.1 orbit-idl-c-utils.c
--- src/idl-compiler/orbit-idl-c-utils.c	22 Feb 2002 10:16:23 -0000	1.29.2.1
+++ src/idl-compiler/orbit-idl-c-utils.c	30 Mar 2002 22:05:15 -0000
@@ -843,8 +843,7 @@
 
 
 		case IDLN_TYPE_ARRAY:
-                        /* Kill any unwanted array size specifiers in cast */
-			retval = g_strdup ("");
+			retval = g_strdup_printf ("(%s_slice *)", typestr);
 			break;
 
 		case IDLN_TYPE_STRUCT:
@@ -865,8 +864,7 @@
 	case DATA_INOUT:
 		switch (IDL_NODE_TYPE (typespec)) {
 		case IDLN_TYPE_ARRAY:
-                        /* Kill any unwanted array size specifiers in cast */
-			retval = g_strdup ("");
+			retval = g_strdup_printf ("(%s_slice *)", typestr);
 			break;
 
 		case BASE_TYPES:


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