mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46:15 +01:00
build: Always enable -Wmisleading-indentation
Try and ensure that people don’t push code with misleading indentation in future. This should give fairly few false positives. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
51d566ba6e
commit
61b2f5c8e1
@ -3508,7 +3508,7 @@ AC_ARG_ENABLE(compile-warnings,
|
|||||||
enable_compile_warnings=yes)
|
enable_compile_warnings=yes)
|
||||||
AS_IF([test "x$enable_compile_warnings" != xno], [
|
AS_IF([test "x$enable_compile_warnings" != xno], [
|
||||||
CC_CHECK_FLAGS_APPEND([GLIB_WARN_CFLAGS], [CFLAGS], [\
|
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=declaration-after-statement \
|
||||||
-Werror=missing-prototypes -Werror=implicit-function-declaration \
|
-Werror=missing-prototypes -Werror=implicit-function-declaration \
|
||||||
-Werror=pointer-arith -Werror=init-self -Werror=format-security \
|
-Werror=pointer-arith -Werror=init-self -Werror=format-security \
|
||||||
|
@ -331,6 +331,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
|||||||
test_c_args = [
|
test_c_args = [
|
||||||
'-Wall',
|
'-Wall',
|
||||||
'-Wduplicated-branches',
|
'-Wduplicated-branches',
|
||||||
|
'-Wmisleading-indentation',
|
||||||
'-Wstrict-prototypes',
|
'-Wstrict-prototypes',
|
||||||
'-Wunused',
|
'-Wunused',
|
||||||
'-Werror=declaration-after-statement',
|
'-Werror=declaration-after-statement',
|
||||||
|
Loading…
Reference in New Issue
Block a user