Skip to content

Commit 777da71

Browse files
committed
FIX: non-void function does not return a value in all control paths
1 parent d3a2ae7 commit 777da71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/c-error.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static REBOL_STATE Top_State; // Boot var: holds error state during boot
470470

471471
/***********************************************************************
472472
**
473-
*/ REBSER *Disarm_Throw_Error(REBVAL *err)
473+
*/ void Disarm_Throw_Error(REBVAL *err)
474474
/*
475475
** Creates real error object from an internal thrown one
476476
**
@@ -483,7 +483,7 @@ static REBOL_STATE Top_State; // Boot var: holds error state during boot
483483
REBVAL word = {0};
484484

485485
code = VAL_ERR_NUM(err);
486-
if (code > RE_THROW_MAX) return VAL_ERR_OBJECT(err);
486+
if (code > RE_THROW_MAX) return;
487487

488488
sym = VAL_ERR_SYM(err);
489489
arg1 = VAL_ERR_VALUE(err);

0 commit comments

Comments
 (0)