summaryrefslogtreecommitdiffstats
path: root/gdb
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-04-23 20:33:45 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-04-23 20:33:45 +0000
commit88c398ab81d54c912a3db8e4c27abd1b52d7ff04 (patch)
tree462b3f066a4fb9a022be544765455263becb9353 /gdb
parentf9389fe9fb7a3b1e7285d00a58bc26273c05077b (diff)
downloadrockbox-88c398ab81d54c912a3db8e4c27abd1b52d7ff04.tar.gz
rockbox-88c398ab81d54c912a3db8e4c27abd1b52d7ff04.zip
More cleanup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@202 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'gdb')
-rw-r--r--gdb/Makefile2
-rw-r--r--gdb/sh-stub.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/gdb/Makefile b/gdb/Makefile
index f61088effc..e4a3154a52 100644
--- a/gdb/Makefile
+++ b/gdb/Makefile
@@ -14,7 +14,7 @@ LIBS = -lgcc
sh-elf-as -o $@ $<
.c.o:
- sh-elf-gcc -O -I../firmware/drivers -m1 -Wall -c -o $@ $<
+ sh-elf-gcc -O -I../firmware/drivers -m1 -Wall -Wstrict-prototypes -c -o $@ $<
$(TARGET).out: $(TARGET).elf
sh-elf-objcopy -O binary $(TARGET).elf $(TARGET).out
diff --git a/gdb/sh-stub.c b/gdb/sh-stub.c
index 6bd5a7ddc4..4def26b797 100644
--- a/gdb/sh-stub.c
+++ b/gdb/sh-stub.c
@@ -224,7 +224,7 @@ static void putpacket (register char *buffer);
static int computeSignal (int exceptionVector);
void handle_buserror (void);
void handle_exception (int exceptionVector);
-void init_serial();
+void init_serial(void);
void serial_putc (char ch);
char serial_getc (void);
@@ -365,8 +365,8 @@ int init_stack[init_stack_size] __attribute__ ((section ("stack"))) = {0};
int stub_stack[stub_stack_size] __attribute__ ((section ("stack"))) = {0};
-void INIT ();
-void start ();
+void INIT (void);
+void start (void);
#define CPU_BUS_ERROR_VEC 9
#define DMA_BUS_ERROR_VEC 10
@@ -937,11 +937,11 @@ void breakpoint (void)
/* SH1/SH2 exception vector table format */
typedef struct
{
- void (*func_cold) ();
+ void (*func_cold) (void);
int *stack_cold;
- void (*func_warm) ();
+ void (*func_warm) (void);
int *stack_warm;
- void (*(handler[128 - 4])) ();
+ void (*(handler[128 - 4])) (void);
} vec_type;
/* vectable is the SH1/SH2 vector table. It must be at address 0
@@ -1104,7 +1104,7 @@ void INIT (void)
blink();
}
-void sr()
+void sr(void)
{
/* Calling Reset does the same as pressing the button */
asm (".global _Reset\n"
@@ -1170,7 +1170,7 @@ void sr()
" .long _handle_exception");
}
-void rr()
+void rr(void)
{
asm(" .align 2 \n"
" .global _resume\n"