mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-24 16:16:52 +02:00
xdgmime: Disable -Wsign-conversion warning inside xdgmime
The code wasn’t written for it, and we don’t want to diverge from upstream for this, so disable -Wsign-conversion in case it was set for the overall GLib build. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3405
This commit is contained in:
parent
7aeb4d94f2
commit
98ab3d7a87
@ -9,11 +9,20 @@ xdgmime_sources = files(
|
||||
'xdgmimeparent.c',
|
||||
)
|
||||
|
||||
# glib enables various warnings which the xdgmime code wasn’t designed to
|
||||
# work with
|
||||
extra_xdgmime_args = cc.get_supported_arguments([
|
||||
'-Wno-sign-conversion',
|
||||
])
|
||||
|
||||
xdgmime_lib = static_library('xdgmime',
|
||||
sources : xdgmime_sources,
|
||||
include_directories : [configinc],
|
||||
pic : true,
|
||||
c_args : [ '-DHAVE_CONFIG_H',
|
||||
'-DXDG_PREFIX=_gio_xdg' ],
|
||||
c_args : [
|
||||
'-DHAVE_CONFIG_H',
|
||||
'-DXDG_PREFIX=_gio_xdg',
|
||||
extra_xdgmime_args,
|
||||
],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user