[vlc-commits] [Git][videolan/vlc][master] 4 commits: meson: don't use -Werror=return-type
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Jun 1 07:01:19 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
d684480b by Steve Lhomme at 2024-06-01T06:48:36+00:00
meson: don't use -Werror=return-type
Similar to 239eafa8b1a9a8f3e9d830232e09fba4675d705a
- - - - -
0c7add09 by Steve Lhomme at 2024-06-01T06:48:36+00:00
cli: mark CLI thread as never returning
The thread never exits on its own. It's cancelable during net_Accept().
Ref. #28650
- - - - -
2f7dec93 by Steve Lhomme at 2024-06-01T06:48:36+00:00
posix: remove unused stdnoreturn.h
Since 7ca3c3640b503af5f2315c5421f395bea89a3090
- - - - -
9183d89c by Steve Lhomme at 2024-06-01T06:48:36+00:00
android: remove unused stdnoreturn.h
Since 7ca3c3640b503af5f2315c5421f395bea89a3090
- - - - -
4 changed files:
- meson.build
- modules/control/cli/cli.c
- src/android/thread.c
- src/posix/thread.c
Changes:
=====================================
meson.build
=====================================
@@ -490,7 +490,6 @@ if get_option('extra_checks')
add_project_arguments(cc.get_supported_arguments([
'-Werror=missing-field-initializers',
'-Werror=format',
- '-Werror=return-type',
'-Werror=return-mismatch'
]), language: ['c', 'cpp'])
add_project_arguments(cc.get_supported_arguments([
=====================================
modules/control/cli/cli.c
=====================================
@@ -543,7 +543,7 @@ static void cli_client_delete(struct cli_client *cl)
free(cl);
}
-static void *Run(void *data)
+_Noreturn static void *Run(void *data)
{
intf_thread_t *intf = data;
intf_sys_t *sys = intf->p_sys;
=====================================
src/android/thread.c
=====================================
@@ -35,7 +35,6 @@
#include <signal.h>
#include <errno.h>
#include <stdatomic.h>
-#include <stdnoreturn.h>
#include <time.h>
#include <assert.h>
=====================================
src/posix/thread.c
=====================================
@@ -34,7 +34,6 @@
#include "libvlc.h"
#include <stdarg.h>
#include <stdatomic.h>
-#include <stdnoreturn.h>
#include <signal.h>
#include <errno.h>
#include <limits.h>
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/c2e35afd5bbca671c12af00bb1264c5d401efbac...9183d89c55107a3a38e62a6e80c530ed4bd71fb5
--
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/c2e35afd5bbca671c12af00bb1264c5d401efbac...9183d89c55107a3a38e62a6e80c530ed4bd71fb5
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list