[gupnp/wip/hadess/enforce-min-glib-version: 3/3] Throw a compilation error for too new glib features
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/wip/hadess/enforce-min-glib-version: 3/3] Throw a compilation error for too new glib features
- Date: Wed, 2 Jun 2021 11:01:40 +0000 (UTC)
commit 167ec18a94c13a163fd8a3936eed55db91f7cbf2
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jun 2 12:23:57 2021 +0200
Throw a compilation error for too new glib features
Throw a compilation error if a "deprecated" function is used, such as
when using functionality that's only available in newer versions than
the minimum one required.
meson.build | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 857773f..1771c48 100644
--- a/meson.build
+++ b/meson.build
@@ -23,6 +23,7 @@ wireless_test ='''#include <sys/socket.h>
conf.set('HAVE_LINUX_WIRELESS_H',
cc.compiles(wireless_test, name : 'linux/wireless.h availability'))
+add_project_arguments(cc.get_supported_arguments('-Werror=deprecated-declarations'), language: 'c')
conf.set('GLIB_VERSION_MIN_REQUIRED', 'GLIB_VERSION_2_44')
conf.set('GLIB_VERSION_MAX_ALLOWED', 'GLIB_VERSION_2_44')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]