mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
As with previous commits, we’re enabling `-Wsign-conversion` piecemeal for all of glib.git. The previous few commits have fixed all the `-Wsign-conversion` warnings in libgirepository, so let’s enable the warning by default for that directory to prevent regressions. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3405
27 lines
604 B
Meson
27 lines
604 B
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
# SPDX-FileCopyrightText: 2024 GNOME Foundation
|
|
|
|
custom_c_args = [
|
|
'-DG_LOG_DOMAIN="GLib-GirDecompiler"',
|
|
warning_sign_conversion_args,
|
|
]
|
|
|
|
if cc.get_id() != 'msvc'
|
|
custom_c_args = cc.get_supported_arguments([
|
|
'-Wno-old-style-definition',
|
|
'-Wno-cast-align',
|
|
'-Wno-unused-parameter',
|
|
'-Wno-duplicated-branches',
|
|
])
|
|
endif
|
|
|
|
gidecompiletypelib = executable('gi-decompile-typelib', 'decompiler.c',
|
|
dependencies: [
|
|
libgirepository_dep,
|
|
libgirepository_internals_dep,
|
|
libgio_dep,
|
|
],
|
|
install: true,
|
|
c_args: custom_c_args,
|
|
)
|