[Intel-gfx] [PATCH xf86-video-intel 01/21] sna: Use -Wno-clobbered
Ville Syrjala
ville.syrjala at linux.intel.com
Thu Sep 19 16:30:53 UTC 2019
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
../src/sna/sna_composite.c:567:11: warning: variable ‘sx’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
int16_t sx = src_x + tx - (dst->pDrawable->x + dst_x);
^~
etc.
I had a quick look at a few of the cases and they seemed fine to me,
so feels like gcc just being dense.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
src/sna/meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/sna/meson.build b/src/sna/meson.build
index 5631d4d8047f..4af181f37b29 100644
--- a/src/sna/meson.build
+++ b/src/sna/meson.build
@@ -135,5 +135,6 @@ sna = static_library('sna',
'-Wno-unused-parameter',
'-Wno-sign-compare',
'-Wno-type-limits',
+ '-Wno-clobbered',
],
install : false)
--
2.21.0
More information about the Intel-gfx
mailing list