[calls] meson: Warn when using misleading indentation
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] meson: Warn when using misleading indentation
- Date: Tue, 18 Jan 2022 06:02:24 +0000 (UTC)
commit 7c7110996ca14002a0eebea0273607efe8bf07a6
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Tue Jan 18 05:23:44 2022 +0100
meson: Warn when using misleading indentation
This allows catching bugs like the infamous 'goto fail goto fail' bug.
meson.build | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 6832e32a..29e1ccfc 100644
--- a/meson.build
+++ b/meson.build
@@ -92,6 +92,7 @@ test_c_args = [
'-Wformat-security',
'-Winit-self',
'-Wmaybe-uninitialized',
+ '-Wmisleading-indentation',
'-Wmissing-include-dirs',
'-Wmissing-noreturn',
'-Wnested-externs',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]