Skip to content

Commit

Permalink
FIX: mark OS_Exit and OS_Crash functions as noreturn
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jan 21, 2023
1 parent 0a0757e commit 13e361a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/os/posix/host-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
** REBOL [R3] Language Interpreter and Run-time Environment
**
** Copyright 2012 REBOL Technologies
** Copyright 2012-2023 Rebol Open Source Developers
** REBOL is a trademark of REBOL Technologies
**
** Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -369,7 +370,7 @@ RL_LIB *RL; // Link back to reb-lib from embedded extensions (like for now: host

/***********************************************************************
**
*/ void OS_Exit(int code)
*/ REB_NORETURN void OS_Exit(int code)
/*
** Called in all cases when REBOL quits
**
Expand All @@ -387,7 +388,7 @@ RL_LIB *RL; // Link back to reb-lib from embedded extensions (like for now: host

/***********************************************************************
**
*/ void OS_Crash(const REBYTE *title, const REBYTE *content)
*/ REB_NORETURN void OS_Crash(const REBYTE *title, const REBYTE *content)
/*
** Tell user that REBOL has crashed. This function must use
** the most obvious and reliable method of displaying the
Expand Down
5 changes: 3 additions & 2 deletions src/os/win32/host-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
** REBOL [R3] Language Interpreter and Run-time Environment
**
** Copyright 2012 REBOL Technologies
** Copyright 2012-2023 Rebol Open Source Developers
** REBOL is a trademark of REBOL Technologies
**
** Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -371,7 +372,7 @@ static void *Task_Ready;

/***********************************************************************
**
*/ void OS_Exit(int code)
*/ REB_NORETURN void OS_Exit(int code)
/*
** Called in all cases when REBOL quits
**
Expand All @@ -397,7 +398,7 @@ static void *Task_Ready;

/***********************************************************************
**
*/ void OS_Crash(const REBYTE *title, const REBYTE *content)
*/ REB_NORETURN void OS_Crash(const REBYTE *title, const REBYTE *content)
/*
** Tell user that REBOL has crashed. This function must use
** the most obvious and reliable method of displaying the
Expand Down

0 comments on commit 13e361a

Please sign in to comment.