mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
gthread: Enable -Wsign-conversion for gthread subdirectory
As with previous commits, we’re enabling `-Wsign-conversion` piecemeal for all of glib.git. It turns out that gthread didn’t have any `-Wsign-conversion` warnings at all, so this was straightforward. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3405
This commit is contained in:
@@ -19,7 +19,7 @@ libgthread = library('gthread-2.0',
|
||||
darwin_versions : darwin_versions,
|
||||
install : true,
|
||||
dependencies : [libglib_dep],
|
||||
c_args : ['-DG_LOG_DOMAIN="GThread"', glib_c_args_internal],
|
||||
c_args : ['-DG_LOG_DOMAIN="GThread"', glib_c_args_internal, warning_sign_conversion_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
link_args : glib_link_flags,
|
||||
)
|
||||
|
@@ -7,7 +7,7 @@ test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||
|
||||
test_deps = [thread_dep, libglib_dep, libgthread_dep]
|
||||
test_cargs = ['-DG_LOG_DOMAIN="GLib-GThread"', '-UG_DISABLE_ASSERT']
|
||||
test_cargs = ['-DG_LOG_DOMAIN="GLib-GThread"', '-UG_DISABLE_ASSERT', warning_sign_conversion_args]
|
||||
test_cpp_args = test_cargs
|
||||
|
||||
foreach test_name, extra_args : gthread_tests
|
||||
|
Reference in New Issue
Block a user