Skip to content

Commit

Permalink
Fix compiler warnings in Segger code
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
  • Loading branch information
nategraff-sifive committed Aug 28, 2020
1 parent 92a1c1a commit ad3082f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion segger/SEGGER_target_metal.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ int SEGGER_SEMIHOST_X_Request(int Op, SEGGER_SEMIHOST_PARA *pPara) {

switch (Op) {
case SYS_WRITEC:
r0 = metal_writeC(pPara);
r0 = metal_writeC((char *)pPara);
break;
case SYS_READC:
r0 = 0;
Expand Down Expand Up @@ -108,6 +108,8 @@ int __SEGGER_RTL_stdout_putc(int c) {

clock_t clock(void) { return SEGGER_SEMIHOST_Clock(); }

void _execute_at_exit_fns(void);

void exit(int status) {
_execute_at_exit_fns(); // defined in libc_segger.a
SEGGER_SEMIHOST_Exit(status);
Expand Down

0 comments on commit ad3082f

Please sign in to comment.