This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] sim: bfin: include devices.h to fix build warnings
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gdb-patches at sourceware dot org
- Date: Sat, 31 Mar 2012 14:43:49 -0400
- Subject: [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