vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed Jan  2 
11:15:14 2019 +0200| [fd516a5737c2407a3b5764b9a7e845b355d1562b] | committer: 
Rémi Denis-Courmont

posix: add suggested noreturn qualifier

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd516a5737c2407a3b5764b9a7e845b355d1562b
---

 src/posix/thread.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/posix/thread.c b/src/posix/thread.c
index 74f4b2763d..9c3206443b 100644
--- a/src/posix/thread.c
+++ b/src/posix/thread.c
@@ -33,6 +33,7 @@
 #include "libvlc.h"
 #include <stdarg.h>
 #include <stdatomic.h>
+#include <stdnoreturn.h>
 #include <signal.h>
 #include <errno.h>
 #include <time.h>
@@ -553,7 +554,7 @@ void vlc_testcancel (void)
     pthread_testcancel ();
 }
 
-void vlc_control_cancel (int cmd, ...)
+noreturn void vlc_control_cancel (int cmd, ...)
 {
     (void) cmd;
     vlc_assert_unreachable ();

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to