ref: e2f765c2f38c780595d97eb54e9f14c85f8f226d
parent: d4799a66d117da0dbc275eb1becec2088643201d
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Tue Mar 5 15:28:11 EST 2024
meson: remove unsupported warning options, stop fortify warning nonsense with debug builds
--- a/meson.build
+++ b/meson.build
@@ -10,13 +10,19 @@
)
add_project_arguments(
- '-Wdiscarded-qualifiers',
'-Wmissing-prototypes',
'-Wformat=2',
- '-Wformat-overflow=2',
'-D_DEFAULT_SOURCE',
language: 'c',
)
+
+cc = meson.get_compiler('c')
+
+if(cc.has_argument('-W#warnings'))
+ add_project_arguments('-Wno-#warnings', language: 'c')
+elif(cc.has_argument('-Wcpp'))
+ add_project_arguments('-Wno-cpp', language: 'c')
+endif
src_lib = [
'437.c',