This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/sim] Fix some compile problems
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 13 Nov 2002 21:55:37 -0500
- Subject: [patch/sim] Fix some compile problems
Just FYI,
Fix a few compiler warnings from an installed Red Hat 7.2 GCC.
committed,
Andrew
Index: common/ChangeLog
2002-11-13 Andrew Cagney <cagney@redhat.com>
* run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
Index: d10v/ChangeLog
2002-11-13 Andrew Cagney <cagney@redhat.com>
* simops.c: Include <string.h>.
Index: common/run.c
===================================================================
RCS file: /cvs/src/src/sim/common/run.c,v
retrieving revision 1.11
diff -u -r1.11 run.c
--- common/run.c 9 Jun 2002 15:45:45 -0000 1.11
+++ common/run.c 14 Nov 2002 02:53:18 -0000
@@ -156,7 +156,7 @@
target. */
operating_p = 1;
break;
-#endif SIM_HAVE_ENVIRONMENT
+#endif
#ifdef SIM_HAVE_PROFILE
case 'p':
sim_set_profile (atoi (optarg));
Index: d10v/simops.c
===================================================================
RCS file: /cvs/src/src/sim/d10v/simops.c,v
retrieving revision 1.3
diff -u -r1.3 simops.c
--- d10v/simops.c 28 May 2002 15:49:52 -0000 1.3
+++ d10v/simops.c 14 Nov 2002 02:53:19 -0000
@@ -7,6 +7,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
#include "d10v_sim.h"
#include "simops.h"