[gupnp/wip/hadess/enforce-min-glib-version-devel: 3/3] Throw a compilation error for too new glib features




commit ab1d1ef432d4610d14d4de8b24773b99d2f68b21
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 aba8c93..63b0f36 100644
--- a/meson.build
+++ b/meson.build
@@ -13,6 +13,7 @@ conf.set('HAVE_NETLINK', netlink_available)
 conf.set('HAVE_IFADDRS_H', ifaddrs_available)
 conf.set('HAVE_LINUX_WIRELESS_H', cc.has_header('linux/wireless.h'))
 
+add_project_arguments(cc.get_supported_arguments('-Werror=deprecated-declarations'), language: 'c')
 conf.set('GLIB_VERSION_MIN_REQUIRED', 'GLIB_VERSION_2_58')
 conf.set('GLIB_VERSION_MAX_ALLOWED', 'GLIB_VERSION_2_58')
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]