mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
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:
commit
85b5a72e69
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user