Skip to content

Commit 8cbfa14

Browse files
nehebkjellahl
authored andcommitted
remove min warning level
This can be done using warning_level=1. Fixes meson warning.
1 parent 686547f commit 8cbfa14

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

meson.build

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ project('libxml++', 'cpp',
44
version: '5.0.1',
55
license: 'LGPLv2.1+',
66
default_options: [
7+
'warning_level=1'
78
'cpp_std=c++17'
89
],
910
meson_version: '>= 0.55.0', # required for meson.add_dist_script(python3, ...)
@@ -227,13 +228,7 @@ xmlxx_libname = 'xml++' + msvc14x_toolset_ver + '-' + xmlxx_api_version
227228

228229
# Set compiler warnings.
229230
warning_flags = []
230-
if warning_level == 'min'
231-
if is_msvc
232-
warning_flags = ['/W3']
233-
else
234-
warning_flags = ['-Wall']
235-
endif
236-
elif warning_level == 'max' or warning_level == 'fatal'
231+
if warning_level == 'max' or warning_level == 'fatal'
237232
if is_msvc
238233
warning_flags = ['/W4']
239234
else

0 commit comments

Comments
 (0)