[gupnp/wip/hadess/backport-guri: 3/3] Throw a compilation error for too new glib features




commit 25f5a8c7cfccc767cf1737b672e577aa9252dfcd
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]