Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] meson: Turn on few warns
@ 2024-03-25  8:24 Bhanuprakash Modem
  2024-03-25  9:16 ` ✗ GitLab.Pipeline: warning for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Bhanuprakash Modem @ 2024-03-25  8:24 UTC (permalink / raw)
  To: igt-dev; +Cc: Bhanuprakash Modem, Kamil Konieczny

dangling-pointer:
    Warn usage of pointers to objects after their lifetime has ended.
int-conversion:
    Warn about incompatible integer to pointer and pointer to
    integer conversions.
unused-variable:
    Warn whenever a local or static variable is unused aside from its
    declaration.

Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 meson.build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meson.build b/meson.build
index cee8a7446..df062abc3 100644
--- a/meson.build
+++ b/meson.build
@@ -57,8 +57,10 @@ cc_args = [
 
 	'-Werror=address',
 	'-Werror=array-bounds',
+	'-Werror=dangling-pointer',
 	'-Werror=implicit',
 	'-Werror=init-self',
+	'-Werror=int-conversion',
 	'-Werror=int-to-pointer-cast',
 	'-Werror=main',
 	'-Werror=missing-braces',
@@ -67,6 +69,7 @@ cc_args = [
 	'-Werror=return-type',
 	'-Werror=sequence-point',
 	'-Werror=trigraphs',
+	'-Werror=unused-variable',
 	'-Werror=write-strings',
 # Disable the memory allocating builtins as they may cause unexpected behavior
 # with our framework. They *may* get optimized out in favor of a register or
-- 
2.43.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-25 15:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-25  8:24 [PATCH i-g-t] meson: Turn on few warns Bhanuprakash Modem
2024-03-25  9:16 ` ✗ GitLab.Pipeline: warning for " Patchwork
2024-03-25  9:48 ` ✓ Fi.CI.BAT: success " Patchwork
2024-03-25 10:24 ` ✓ CI.xeBAT: " Patchwork
2024-03-25 12:11 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-03-25 15:47 ` [PATCH i-g-t] " Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox