Merge branch '796385-indentation' into 'master'

Fix misleading indentation (bug #796385)

See merge request GNOME/glib!42
This commit is contained in:
Philip Withnall 2018-05-30 09:33:56 +00:00
commit e03f83212d
3 changed files with 14 additions and 13 deletions

View File

@ -3508,7 +3508,7 @@ AC_ARG_ENABLE(compile-warnings,
enable_compile_warnings=yes)
AS_IF([test "x$enable_compile_warnings" != xno], [
CC_CHECK_FLAGS_APPEND([GLIB_WARN_CFLAGS], [CFLAGS], [\
-Wall -Wstrict-prototypes -Wduplicated-branches \
-Wall -Wstrict-prototypes -Wduplicated-branches -Wmisleading-indentation \
-Werror=declaration-after-statement \
-Werror=missing-prototypes -Werror=implicit-function-declaration \
-Werror=pointer-arith -Werror=init-self -Werror=format-security \

View File

@ -331,6 +331,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
test_c_args = [
'-Wall',
'-Wduplicated-branches',
'-Wmisleading-indentation',
'-Wstrict-prototypes',
'-Wunused',
'-Werror=declaration-after-statement',