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] sim: bfin: include devices.h to fix build warnings


The place where these funcs get defined do not include the header that
declares their prototypes.  Add that to fix -Wmissing-prototypes:

devices.c:59:1: warning: no previous prototype for 'dv_bfin_mmr_invalid'
devices.c:66:1: warning: no previous prototype for 'dv_bfin_mmr_require'
devices.c:99:1: warning: no previous prototype for 'dv_bfin_mmr_check'
devices.c:159:14: warning: no previous prototype for 'dv_get_bus_num'

Committed.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2012-03-31  Mike Frysinger  <vapier@gentoo.org>

	* devices.c: Include devices.h.
---
 sim/bfin/devices.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sim/bfin/devices.c b/sim/bfin/devices.c
index d3fa95f..b18f1b6 100644
--- a/sim/bfin/devices.c
+++ b/sim/bfin/devices.c
@@ -23,6 +23,7 @@
 #include "sim-main.h"
 #include "sim-hw.h"
 #include "hw-device.h"
+#include "devices.h"
 #include "dv-bfin_cec.h"
 #include "dv-bfin_mmu.h"
 
-- 
1.7.8.5


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