GTK+: Silence -Wformat-truncation on GCC.

This commit is contained in:
Brandon Wright 2018-12-17 20:28:30 -06:00
parent 913e797914
commit 9b04ba3a28
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ deps += [ glib_dep, gthread_dep, gobject_dep, sdl2_dep ]
c_compiler = meson.get_compiler('c')
if c_compiler.version().version_compare('>=7.0.0') and c_compiler.get_id() == 'gcc'
args += '-Wno-format-truncation'
endif
if get_option('gtk3') and not get_option('gtk2')
message('Building with GTK+-3.0')
gtk_dep = dependency('gtk+-3.0', version: '>= 3.22')