[glib: 4/6] build: Threat unused-result warnings as errors




commit b61cd872f17fa1012508c9924e2be046e39cb5f1
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Jul 6 16:07:43 2022 +0200

    build: Threat unused-result warnings as errors
    
    We don't have any in code now, so we should definitely ensure that we
    won't introduce anymore unguarded calls.

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 6f83a72cfe..27600672b6 100644
--- a/meson.build
+++ b/meson.build
@@ -473,6 +473,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
     '-Werror=init-self',
     '-Werror=missing-include-dirs',
     '-Werror=pointer-arith',
+    '-Werror=unused-result',
   ]
 
   warning_c_args = warning_common_args + [


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