aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-02-08 20:54:27 +0000
committerNick Clifton <nickc@redhat.com>2000-02-08 20:54:27 +0000
commit6d358e869b1efe22fa6697a8aa4191ddacbacef0 (patch)
tree8e46af77cc6bd1e1f07b560c31b7cdf0fbbffab9 /sim/common
parentab266a97fb888efa38e7cdc1d53b6c97337b589f (diff)
downloadgdb-6d358e869b1efe22fa6697a8aa4191ddacbacef0.zip
gdb-6d358e869b1efe22fa6697a8aa4191ddacbacef0.tar.gz
gdb-6d358e869b1efe22fa6697a8aa4191ddacbacef0.tar.bz2
Fix compile time warning messages.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog5
-rw-r--r--sim/common/callback.c16
-rw-r--r--sim/common/run.c3
3 files changed, 15 insertions, 9 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 428f457..3d190a5 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2000-02-08 Nick Clifton <nickc@cygnus.com>
+
+ * callback.c: Fix compile time warning messages.
+ * run.c: Fix compile time warning messages.
+
1999-12-17 Dave Brolley <brolley@cygnus.com>
* sim-profile.h: (set_profile_option_mask): Add prototype.
diff --git a/sim/common/callback.c b/sim/common/callback.c
index e8a28c4..19acca0 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -306,7 +306,7 @@ os_write (p, fd, buf, len)
static int
os_write_stdout (p, buf, len)
- host_callback *p;
+ host_callback *p ATTRIBUTE_UNUSED;
const char *buf;
int len;
{
@@ -315,14 +315,14 @@ os_write_stdout (p, buf, len)
static void
os_flush_stdout (p)
- host_callback *p;
+ host_callback *p ATTRIBUTE_UNUSED;
{
fflush (stdout);
}
static int
os_write_stderr (p, buf, len)
- host_callback *p;
+ host_callback *p ATTRIBUTE_UNUSED;
const char *buf;
int len;
{
@@ -331,7 +331,7 @@ os_write_stderr (p, buf, len)
static void
os_flush_stderr (p)
- host_callback *p;
+ host_callback *p ATTRIBUTE_UNUSED;
{
fflush (stderr);
}
@@ -440,7 +440,7 @@ os_init (p)
/* VARARGS */
static void
#ifdef ANSI_PROTOTYPES
-os_printf_filtered (host_callback *p, const char *format, ...)
+os_printf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, ...)
#else
os_printf_filtered (p, va_alist)
host_callback *p;
@@ -464,7 +464,7 @@ os_printf_filtered (p, va_alist)
/* VARARGS */
static void
#ifdef ANSI_PROTOTYPES
-os_vprintf_filtered (host_callback *p, const char *format, va_list args)
+os_vprintf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, va_list args)
#else
os_vprintf_filtered (p, format, args)
host_callback *p;
@@ -478,7 +478,7 @@ os_vprintf_filtered (p, format, args)
/* VARARGS */
static void
#ifdef ANSI_PROTOTYPES
-os_evprintf_filtered (host_callback *p, const char *format, va_list args)
+os_evprintf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, va_list args)
#else
os_evprintf_filtered (p, format, args)
host_callback *p;
@@ -492,7 +492,7 @@ os_evprintf_filtered (p, format, args)
/* VARARGS */
static void
#ifdef ANSI_PROTOTYPES
-os_error (host_callback *p, const char *format, ...)
+os_error (host_callback *p ATTRIBUTE_UNUSED, const char *format, ...)
#else
os_error (p, va_alist)
host_callback *p;
diff --git a/sim/common/run.c b/sim/common/run.c
index 72d7509..a3e38a8 100644
--- a/sim/common/run.c
+++ b/sim/common/run.c
@@ -45,6 +45,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "bfd.h"
#include "callback.h"
#include "remote-sim.h"
+#include "ansidecl.h"
#include "../libiberty/alloca-conf.h"
@@ -69,7 +70,7 @@ int (*ui_loop_hook) PARAMS ((int signo));
static SIM_DESC sd;
static RETSIGTYPE
-cntrl_c (int sig)
+cntrl_c (int sig ATTRIBUTE_UNUSED)
{
if (! sim_stop (sd))
{