This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] some non GCC warnings


Hello,

This fixes two minor warnings being reported by a Tru64 compiler. Committed.

Andrew
2003-03-18  Andrew Cagney  <cagney at redhat dot com>

	* printcmd.c (print_scalar_formatted): Change VALADDR parameter to
	a void pointer.
	* gdbtypes.h (print_scalar_formatted): Update declaration.
	* expression.h (enum exp_opcode): Remove non-ISO C trailing comma.

Index: expression.h
===================================================================
RCS file: /cvs/src/src/gdb/expression.h,v
retrieving revision 1.10
diff -u -r1.10 expression.h
--- expression.h	14 Jan 2003 00:49:03 -0000	1.10
+++ expression.h	18 Mar 2003 22:02:22 -0000
@@ -322,7 +322,7 @@
     OP_EXPRSTRING,
 
     /* An Objective C Foundation Class NSString constant */
-    OP_OBJC_NSSTRING,
+    OP_OBJC_NSSTRING
   };
 
 union exp_element
Index: gdbtypes.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.h,v
retrieving revision 1.44
diff -u -r1.44 gdbtypes.h
--- gdbtypes.h	7 Feb 2003 21:44:01 -0000	1.44
+++ gdbtypes.h	18 Mar 2003 22:02:23 -0000
@@ -1250,7 +1250,7 @@
 
 /* printcmd.c */
 
-extern void print_scalar_formatted (char *, struct type *, int, int,
+extern void print_scalar_formatted (void *, struct type *, int, int,
 				    struct ui_file *);
 
 extern int can_dereference (struct type *);
Index: printcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/printcmd.c,v
retrieving revision 1.56
diff -u -r1.56 printcmd.c
--- printcmd.c	25 Feb 2003 21:36:19 -0000	1.56
+++ printcmd.c	18 Mar 2003 22:02:23 -0000
@@ -343,7 +343,7 @@
    with a format.  */
 
 void
-print_scalar_formatted (char *valaddr, struct type *type, int format, int size,
+print_scalar_formatted (void *valaddr, struct type *type, int format, int size,
 			struct ui_file *stream)
 {
   LONGEST val_long;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]