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 <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2025-01-21 20:42:30 +02:00 committed by Daniel Stone
parent d17e61546e
commit cfbf49d7e0
2 changed files with 1 additions and 9 deletions

View file

@ -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 <freerdp/version.h>
#include <freerdp/freerdp.h>

View file

@ -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',