[PATCH] Initialize __expected to 0 in RING_LOCALS.
Cyril Brulebois
kibi at debian.org
Mon Apr 5 11:11:21 PDT 2010
This avoids some noise during building:
CC radeon_accel.lo
radeon_accel.c: In function ‘RADEONHostDataBlit’:
radeon_accel.c:855: warning: ‘__expected’ may be used uninitialized in this function
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
src/radeon.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/radeon.h b/src/radeon.h
index 88f1516..d73329d 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -1425,7 +1425,7 @@ do { \
#define RADEON_VERBOSE 0
-#define RING_LOCALS uint32_t *__head = NULL; int __expected; int __count = 0
+#define RING_LOCALS uint32_t *__head = NULL; int __expected = 0; int __count = 0
#define BEGIN_RING(n) do { \
if (RADEON_VERBOSE) { \
--
1.7.0.3
More information about the xorg-driver-ati
mailing list