[evince/wip/chpe/build-fixes: 1/3] build: Silence deprecated declarations warnings




commit d6905c582fd029b46f0aa6cef14b62c5bf46da1a
Author: Christian Persch <chpe src gnome org>
Date:   Tue Nov 16 23:34:27 2021 +0100

    build: Silence deprecated declarations warnings
    
    It's simply too much noise.

 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index bcb69cf79..22812d7a3 100644
--- a/meson.build
+++ b/meson.build
@@ -101,7 +101,9 @@ config_h.set('HAVE__NL_MEASUREMENT_MEASUREMENT', cc.compiles(langinfo_measuremen
              description: 'Define if _NL_MEASUREMENT_MEASUREMENT is available')
 
 # compiler flags
-common_flags = ['-DHAVE_CONFIG_H']
+common_flags = ['-DHAVE_CONFIG_H'] + cc.get_supported_arguments([
+  '-Wno-deprecated-declarations',
+])
 
 common_ldflags = []
 


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