[Piglit] [PATCH] clipflat: Fix uninitialized variable warning.
Vinson Lee
vlee at freedesktop.org
Tue Dec 24 15:11:34 PST 2013
Fix GCC maybe-uninitialized warning.
clipflat.c: In function 'reportFailure.isra.0':
clipflat.c:374:10: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized]
snprintf(msg1, sizeof(msg1), "clipflat: Failure for %s(%s),"
^
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/general/clipflat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/general/clipflat.c b/tests/general/clipflat.c
index 54eb236..37a40af 100644
--- a/tests/general/clipflat.c
+++ b/tests/general/clipflat.c
@@ -359,6 +359,7 @@ reportFailure(GLenum mode, int drawMode, GLuint facing,
break;
default:
assert(0);
+ d = "???";
}
if (facing == 0)
--
1.8.5.2
More information about the Piglit
mailing list