summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-06-02 12:23:57 +0200
committerBastien Nocera <hadess@hadess.net>2021-06-02 13:01:10 +0200
commit167ec18a94c13a163fd8a3936eed55db91f7cbf2 (patch)
treed79e7c904b621d021399d92c26ae471a55c64010
parentb4844642e697b577a774acbc19383e856baa44f5 (diff)
downloadgupnp-1.0.tar.gz
Throw a compilation error for too new glib featuresgupnp-1.0
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.
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
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')