From cfbf49d7e012d9825f17984b360c32e2d845c002 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Tue, 21 Jan 2025 20:42:30 +0200 Subject: [PATCH] meson.build: Bump to C11 with GNU extensions Weston seems quite ready for that so let us do it! This makes the winpr3 Static assert warning message go away, allowing us to perform a build (as we fail with any type of warnings). Signed-off-by: Marius Vlad --- libweston/backend-rdp/rdp.h | 8 -------- meson.build | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/libweston/backend-rdp/rdp.h b/libweston/backend-rdp/rdp.h index 5243cfdec..c5f515097 100644 --- a/libweston/backend-rdp/rdp.h +++ b/libweston/backend-rdp/rdp.h @@ -27,14 +27,6 @@ #ifndef RDP_H #define RDP_H -/* Workaround an issue with clang and freerdp 3 headers. Another - * option would be to build with --std=c11 but weston itself isn't - * quite ready for that - */ -#if USE_FREERDP_VERSION >= 3 && defined(__clang__) -#pragma clang diagnostic ignored "-Wtypedef-redefinition" -#endif - #include #include diff --git a/meson.build b/meson.build index 9ae739b86..779f25265 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,7 @@ project('weston', version: '14.0.90', default_options: [ 'warning_level=3', - 'c_std=gnu99', + 'c_std=gnu11', 'b_lundef=true', ], meson_version: '>= 0.63.0',