diff --git a/ffplay.c b/ffplay.c
index c85dad5e2f45f595c788ff5e4e154ff3eb6d5b55..5cc4fa42582bcaf25ca18546b214f38fe3ecc521 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -290,7 +290,7 @@ static AVPacket flush_pkt;
 
 static SDL_Surface *screen;
 
-void exit_program(int ret)
+void av_noreturn exit_program(int ret)
 {
     exit(ret);
 }