Merge branch '1662-no-pedantry' into 'master'

build: Add -Wno-pedantic flag to compiler arguments

See merge request GNOME/glib!608
This commit is contained in:
Emmanuele Bassi 2019-01-23 14:15:18 +00:00
commit 85b5a72e69

View File

@ -355,6 +355,9 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
# Due to pervasive use of things like GPOINTER_TO_UINT(), we do not support
# building with -Wbad-function-cast.
'-Wno-bad-function-cast',
# Due to function casts through (void*) we cannot support -Wpedantic:
# https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions.
'-Wno-pedantic',
'-Werror=declaration-after-statement',
'-Werror=format=2',
'-Werror=implicit-function-declaration',