aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog21
-rw-r--r--gdb/breakpoint.c2
-rw-r--r--gdb/f-exp.y4
-rw-r--r--gdb/m2-exp.y2
-rw-r--r--gdb/mep-tdep.c12
-rw-r--r--gdb/objc-exp.y2
-rw-r--r--gdb/p-exp.y2
-rw-r--r--gdb/python/py-evts.c2
-rw-r--r--gdb/python/py-prettyprint.c2
-rw-r--r--gdb/remote.c2
-rw-r--r--gdb/tracepoint.c2
11 files changed, 37 insertions, 16 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cb5bb35..13df3dc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,24 @@
+2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Fix ARI warning about functions without parameters that do not
+ use (void).
+ * breakpoint.c (all_tracepoints): Replace () by (void).
+ * f-exp.y (match_string_literal): Ditto.
+ (yylex): Ditto.
+ * m2-exp.y (yylex): Ditto.
+ * mep-tdep.c (current_me_module): Ditto.
+ (current_options): Ditto.
+ (current_cop_data_bus_width): Ditto.
+ (current_cr_names): Ditto.
+ (current_cr_is_float): Ditto.
+ (current_ccr_names): Ditto.
+ * objc-exp.y (yylex): Ditto.
+ * p-exp.y (yylex): Ditto.
+ * remote.c (send_interrupt_sequence): Ditto.
+ * tracepoint.c (current_trace_status): Ditto.
+ * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
+ * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
+
2011-03-11 Michael Snyder <msnyder@vmware.com>
* cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 8d9926c..d9e5b1e 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -11952,7 +11952,7 @@ save_tracepoints_command (char *args, int from_tty)
/* Create a vector of all tracepoints. */
VEC(breakpoint_p) *
-all_tracepoints ()
+all_tracepoints (void)
{
VEC(breakpoint_p) *tp_vec = 0;
struct breakpoint *tp;
diff --git a/gdb/f-exp.y b/gdb/f-exp.y
index 02745c8..7cd6ae1 100644
--- a/gdb/f-exp.y
+++ b/gdb/f-exp.y
@@ -919,7 +919,7 @@ growbuf_by_size (count)
a string, it is simply doubled (I.E. 'this''is''one''string') */
static int
-match_string_literal ()
+match_string_literal (void)
{
char *tokptr = lexptr;
@@ -951,7 +951,7 @@ match_string_literal ()
/* Read one token, getting characters through lexptr. */
static int
-yylex ()
+yylex (void)
{
int c;
int namelen;
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y
index 56ec404..c27545c 100644
--- a/gdb/m2-exp.y
+++ b/gdb/m2-exp.y
@@ -808,7 +808,7 @@ static struct keyword keytab[] =
compatible */
static int
-yylex ()
+yylex (void)
{
int c;
int namelen;
diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c
index cd86442..b8759bc 100644
--- a/gdb/mep-tdep.c
+++ b/gdb/mep-tdep.c
@@ -845,7 +845,7 @@ mep_pseudo_cr_index (int pseudo)
from the ELF header's e_flags field of the current executable
file. */
static CONFIG_ATTR
-current_me_module ()
+current_me_module (void)
{
if (target_has_registers)
{
@@ -868,7 +868,7 @@ current_me_module ()
then use the 'module_opt' field we computed when we build the
gdbarch object for this module. */
static unsigned int
-current_options ()
+current_options (void)
{
if (target_has_registers)
{
@@ -885,7 +885,7 @@ current_options ()
/* Return the width of the current me_module's coprocessor data bus,
in bits. This is either 32 or 64. */
static int
-current_cop_data_bus_width ()
+current_cop_data_bus_width (void)
{
return me_module_cop_data_bus_width (current_me_module ());
}
@@ -894,7 +894,7 @@ current_cop_data_bus_width ()
/* Return the keyword table of coprocessor general-purpose register
names appropriate for the me_module we're dealing with. */
static CGEN_KEYWORD *
-current_cr_names ()
+current_cr_names (void)
{
const CGEN_HW_ENTRY *hw
= me_module_register_set (current_me_module (), "h-cr-", HW_H_CR);
@@ -906,7 +906,7 @@ current_cr_names ()
/* Return non-zero if the coprocessor general-purpose registers are
floating-point values, zero otherwise. */
static int
-current_cr_is_float ()
+current_cr_is_float (void)
{
const CGEN_HW_ENTRY *hw
= me_module_register_set (current_me_module (), "h-cr-", HW_H_CR);
@@ -918,7 +918,7 @@ current_cr_is_float ()
/* Return the keyword table of coprocessor control register names
appropriate for the me_module we're dealing with. */
static CGEN_KEYWORD *
-current_ccr_names ()
+current_ccr_names (void)
{
const CGEN_HW_ENTRY *hw
= me_module_register_set (current_me_module (), "h-ccr-", HW_H_CCR);
diff --git a/gdb/objc-exp.y b/gdb/objc-exp.y
index 3322874..c1e2632 100644
--- a/gdb/objc-exp.y
+++ b/gdb/objc-exp.y
@@ -1218,7 +1218,7 @@ static const struct token tokentab2[] =
/* Read one token, getting characters through lexptr. */
static int
-yylex ()
+yylex (void)
{
int c, tokchr;
int namelen;
diff --git a/gdb/p-exp.y b/gdb/p-exp.y
index ec656d0..e0dba8f 100644
--- a/gdb/p-exp.y
+++ b/gdb/p-exp.y
@@ -1120,7 +1120,7 @@ static int last_was_structop;
/* Read one token, getting characters through lexptr. */
static int
-yylex ()
+yylex (void)
{
int c;
int namelen;
diff --git a/gdb/python/py-evts.c b/gdb/python/py-evts.c
index 446b934..50c05f3 100644
--- a/gdb/python/py-evts.c
+++ b/gdb/python/py-evts.c
@@ -42,7 +42,7 @@ add_new_registry (eventregistry_object **registryp, char *name)
}
void
-gdbpy_initialize_py_events ()
+gdbpy_initialize_py_events (void)
{
gdb_py_events.module = Py_InitModule ("events", NULL);
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index 89c832a..3325795 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -394,7 +394,7 @@ py_restore_tstate (void *p)
/* Create a dummy PyFrameObject, needed to work around
a Python-2.4 bug with generators. */
static PyObject *
-push_dummy_python_frame ()
+push_dummy_python_frame (void)
{
PyObject *empty_string, *null_tuple, *globals;
PyCodeObject *code;
diff --git a/gdb/remote.c b/gdb/remote.c
index 3034e61..ad473cc 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3112,7 +3112,7 @@ struct start_remote_args
/* Send interrupt_sequence to remote target. */
static void
-send_interrupt_sequence ()
+send_interrupt_sequence (void)
{
if (interrupt_sequence_mode == interrupt_sequence_control_c)
serial_write (remote_desc, "\x03", 1);
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 7aef35f..dfcefbd 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -218,7 +218,7 @@ char *stop_reason_names[] = {
};
struct trace_status *
-current_trace_status ()
+current_trace_status (void)
{
return &trace_status;
}