RE: New ARI warning Sat Mar 12 01:53:29 UTC 2011

Pierre Muller
2011-03-13T08:21:53Z

This is the consequence of the two new ARI rules I added:
http://sourceware.org/ml/gdb-patches/2011-03/msg00654.html

As I just introduced these new rules,
I felt that it would be cheating to
use OBVIOUS rule as we normally do to fix
a ARI regression...
This is why I will submit shortly two patches
to remove all those new warnings.

Pierre Muller
as ARI maintainer.

> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de GDB Administrator
> Envoyé : samedi 12 mars 2011 02:53
> À : gdb-patches@sourceware.org
> Objet : New ARI warning Sat Mar 12 01:53:29 UTC 2011
>
> 76a77
> > gdb/breakpoint.c:11955: code: no parameter function: Function having
> no parameter should be declared with funcname (void).
> gdb/breakpoint.c:11955:all_tracepoints ()
> 259a261,262
> > gdb/f-exp.y:922: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/f-exp.y:922:match_string_literal ()
> > gdb/f-exp.y:954: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/f-exp.y:954:yylex ()
> 343a347
> > gdb/hppa-tdep.h:244: code: function call in first column: Function
> name in first column should be restricted to function implementation
> gdb/hppa-tdep.h:244:hppa_init_objfile_priv_data (struct objfile
> *objfile);
> 403a408
> > gdb/inferior.h:370: code: function call in first column: Function
> name in first column should be restricted to function implementation
> gdb/inferior.h:370:get_displaced_step_closure_by_addr (CORE_ADDR addr);
> 528a534
> > gdb/m2-exp.y:811: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/m2-exp.y:811:yylex ()
> 561a568,573
> > gdb/mep-tdep.c:848: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/mep-tdep.c:848:current_me_module ()
> > gdb/mep-tdep.c:871: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/mep-tdep.c:871:current_options ()
> > gdb/mep-tdep.c:888: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/mep-tdep.c:888:current_cop_data_bus_width ()
> > gdb/mep-tdep.c:897: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/mep-tdep.c:897:current_cr_names ()
> > gdb/mep-tdep.c:909: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/mep-tdep.c:909:current_cr_is_float ()
> > gdb/mep-tdep.c:921: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/mep-tdep.c:921:current_ccr_names ()
> 676a689,692
> > gdb/objc-exp.y:111: code: function call in first column: Function
> name in first column should be restricted to function implementation
> gdb/objc-exp.y:111:yyparse (void);
> > gdb/objc-exp.y:114: code: function call in first column: Function
> name in first column should be restricted to function implementation
> gdb/objc-exp.y:114:yylex (void);
> > gdb/objc-exp.y:117: code: function call in first column: Function
> name in first column should be restricted to function implementation
> gdb/objc-exp.y:117:yyerror (char *);
> > gdb/objc-exp.y:154: code: function call in first column: Function
> name in first column should be restricted to function implementation
> gdb/objc-exp.y:154:parse_number (char *, int, int, YYSTYPE *);
> 692a709
> > gdb/objc-exp.y:1221: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/objc-exp.y:1221:yylex ()
> 724a742,743
> > gdb/p-exp.y:121: code: function call in first column: Function name
> in first column should be restricted to function implementation
> gdb/p-exp.y:121:yyerror (char *);
> > gdb/p-exp.y:158: code: function call in first column: Function name
> in first column should be restricted to function implementation
> gdb/p-exp.y:158:parse_number (char *, int, int, YYSTYPE *);
> 733a753
> > gdb/p-exp.y:1123: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/p-exp.y:1123:yylex ()
> 831a852,855
> > gdb/python/py-evts.c:45: code: no parameter function: Function having
> no parameter should be declared with funcname (void).
> gdb/python/py-evts.c:45:gdbpy_initialize_py_events ()
> > gdb/python/py-prettyprint.c:397: code: no parameter function:
> Function having no parameter should be declared with funcname (void).
> gdb/python/py-prettyprint.c:397:push_dummy_python_frame ()
> > gdb/python/py-stopevent.h:32: code: function call in first column:
> Function name in first column should be restricted to function
> implementation
> gdb/python/py-stopevent.h:32:create_breakpoint_event_object (PyObject
> *breakpoint);
> > gdb/python/py-stopevent.h:35: code: function call in first column:
> Function name in first column should be restricted to function
> implementation
> gdb/python/py-stopevent.h:35:create_signal_event_object (enum
> target_signal stop_signal);
> 904a929
> > gdb/remote.c:3115: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/remote.c:3115:send_interrupt_sequence ()
> 1011a1037
> > gdb/solib-pa64.c:80: code: function call in first column: Function
> name in first column should be restricted to function implementation
> gdb/solib-pa64.c:80:read_dynamic_info (asection *dyninfo_sect,
> dld_cache_t *dld_cache_p);
> 1134a1161
> > gdb/tracepoint.c:221: code: no parameter function: Function having no
> parameter should be declared with funcname (void).
> gdb/tracepoint.c:221:current_trace_status ()
> 1234a1262
> > gdb/varobj.c:300: code: function call in first column: Function name
> in first column should be restricted to function implementation
> gdb/varobj.c:300:varobj_add_child (struct varobj *var, const char
> *name, struct value *value);
> 1236a1265
> > gdb/varobj.h:171: code: function call in first column: Function name
> in first column should be restricted to function implementation
> gdb/varobj.h:171:varobj_set_visualizer (struct varobj *var, const char
> *visualizer);
> 1296,1298d1324
> < gdb/xtensa-tdep.c:124: code: inline: Do not use the inline attribute;
> since the compiler generally ignores this, better algorithm selection
> is needed to improved performance
> gdb/xtensa-tdep.c:124:static inline int
> < gdb/xtensa-tdep.c:165: code: inline: Do not use the inline attribute;
> since the compiler generally ignores this, better algorithm selection
> is needed to improved performance
> gdb/xtensa-tdep.c:165:static inline unsigned long
> < gdb/xtensa-tdep.c:175: code: inline: Do not use the inline attribute;
> since the compiler generally ignores this, better algorithm selection
> is needed to improved performance
> gdb/xtensa-tdep.c:175:static inline void
> 1300d1325
> < gdb/xtensa-tdep.c:740: code: inline: Do not use the inline attribute;
> since the compiler generally ignores this, better algorithm selection
> is needed to improved performance
> gdb/xtensa-tdep.c:740:static inline