summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qcommon/common.c2
-rw-r--r--src/qcommon/vm_x86.c2
-rw-r--r--src/renderercommon/tr_image_jpg.c2
3 files changed, 3 insertions, 3 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);
diff --git a/src/renderercommon/tr_image_jpg.c b/src/renderercommon/tr_image_jpg.c
index 39108000..931a4f9b 100644
--- a/src/renderercommon/tr_image_jpg.c
+++ b/src/renderercommon/tr_image_jpg.c
@@ -43,7 +43,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# endif
#endif
-static void R_JPGErrorExit(j_common_ptr cinfo)
+static void __attribute__((__noreturn__)) R_JPGErrorExit(j_common_ptr cinfo)
{
char buffer[JMSG_LENGTH_MAX];