summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/common.c2
-rw-r--r--src/qcommon/vm_x86.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qcommon/common.c b/src/qcommon/common.c
index 41a8f5b0..2b92bbd1 100644
--- a/src/qcommon/common.c
+++ b/src/qcommon/common.c
@@ -2244,7 +2244,7 @@ Just throw a fatal error to
test error shutdown procedures
=============
*/
-static void Com_Error_f (void) {
+static void __attribute__((__noreturn__)) Com_Error_f (void) {
if ( Cmd_Argc() > 1 ) {
Com_Error( ERR_DROP, "Testing drop error" );
} else {
diff --git a/src/qcommon/vm_x86.c b/src/qcommon/vm_x86.c
index 21b69699..9661d8d3 100644
--- a/src/qcommon/vm_x86.c
+++ b/src/qcommon/vm_x86.c
@@ -382,7 +382,7 @@ Error handler for jump/call to invalid instruction number
=================
*/
-static void ErrJump(void)
+static void __attribute__((__noreturn__)) ErrJump(void)
{
Com_Error(ERR_DROP, "program tried to execute code outside VM");
exit(1);