This is the mail archive of the gdb-patches@sourceware.org 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]

[PATCH 07/14] -Wmissing-prototypes: inline-frame.c.


$ make WERROR_CFLAGS="-Wmissing-prototypes" inline-frame.o 1>/dev/null
../../src/gdb/inline-frame.c:113:1: warning: no previous prototype for âclear_inline_frame_stateâ [-Wmissing-prototypes]
../../src/gdb/inline-frame.c:302:1: warning: no previous prototype for âskip_inline_framesâ [-Wmissing-prototypes]
../../src/gdb/inline-frame.c:351:1: warning: no previous prototype for âstep_into_inline_frameâ [-Wmissing-prototypes]
../../src/gdb/inline-frame.c:364:1: warning: no previous prototype for âinline_skipped_framesâ [-Wmissing-prototypes]
../../src/gdb/inline-frame.c:378:1: warning: no previous prototype for âinline_skipped_symbolâ [-Wmissing-prototypes]
../../src/gdb/inline-frame.c:391:1: warning: no previous prototype for âframe_inlined_calleesâ [-Wmissing-prototypes]

A case of a module not including its own header.

2012-02-29  Pedro Alves  <palves@redhat.com>

	* inline-frame.c: Include inline-frame.h.
---
 gdb/inline-frame.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gdb/inline-frame.c b/gdb/inline-frame.c
index 3e2da73..06de5b0 100644
--- a/gdb/inline-frame.c
+++ b/gdb/inline-frame.c
@@ -18,6 +18,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "inline-frame.h"
 #include "addrmap.h"
 #include "block.h"
 #include "frame-unwind.h"


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