mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
gmodule: Enable -Wsign-conversion for gmodule subdirectory
There was only one `-Wsign-conversion` warning in the whole subdirectory, so that was easy. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3405
This commit is contained in:
@@ -481,7 +481,7 @@ g_module_open_full (const gchar *file_name,
|
|||||||
_g_module_debug_init ();
|
_g_module_debug_init ();
|
||||||
|
|
||||||
if (module_debug_flags & G_MODULE_DEBUG_BIND_NOW_MODULES)
|
if (module_debug_flags & G_MODULE_DEBUG_BIND_NOW_MODULES)
|
||||||
flags &= ~G_MODULE_BIND_LAZY;
|
flags &= (unsigned) ~G_MODULE_BIND_LAZY;
|
||||||
|
|
||||||
if (!file_name)
|
if (!file_name)
|
||||||
{
|
{
|
||||||
|
@@ -96,7 +96,7 @@ libgmodule = library('gmodule-2.0',
|
|||||||
install : true,
|
install : true,
|
||||||
include_directories : [configinc, gmoduleinc],
|
include_directories : [configinc, gmoduleinc],
|
||||||
dependencies : [libdl_dep, libglib_dep],
|
dependencies : [libdl_dep, libglib_dep],
|
||||||
c_args : ['-DG_LOG_DOMAIN="GModule"', '-DGMODULE_COMPILATION'],
|
c_args : ['-DG_LOG_DOMAIN="GModule"', '-DGMODULE_COMPILATION', warning_sign_conversion_args],
|
||||||
gnu_symbol_visibility : 'hidden',
|
gnu_symbol_visibility : 'hidden',
|
||||||
link_args : [glib_link_flags],
|
link_args : [glib_link_flags],
|
||||||
)
|
)
|
||||||
|
@@ -75,7 +75,7 @@ test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|||||||
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||||
|
|
||||||
test_deps = [libm, thread_dep, libglib_dep, libgmodule_dep]
|
test_deps = [libm, thread_dep, libglib_dep, libgmodule_dep]
|
||||||
test_cargs = ['-DG_LOG_DOMAIN="GModule"', '-UG_DISABLE_ASSERT']
|
test_cargs = ['-DG_LOG_DOMAIN="GModule"', '-UG_DISABLE_ASSERT', warning_sign_conversion_args]
|
||||||
test_cpp_args = test_cargs
|
test_cpp_args = test_cargs
|
||||||
|
|
||||||
foreach test_name, extra_args : gmodule_tests
|
foreach test_name, extra_args : gmodule_tests
|
||||||
|
Reference in New Issue
Block a user