diff options
author | Vinson Lee <vlee@freedesktop.org> | 2013-12-24 15:11:34 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-12-26 14:11:05 -0800 |
commit | a0b1140e69070870a93dcef736bb60d8822ef150 (patch) | |
tree | 88800f0073c32371d9bad33e48b0db8569bda934 /tests/general | |
parent | 3cebb8e4da6ad5f6499886b3e5a64bbebd17130a (diff) |
clipflat: Fix uninitialized variable warning.
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@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/general')
-rw-r--r-- | tests/general/clipflat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/general/clipflat.c b/tests/general/clipflat.c index 54eb23601..37a40af9c 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) |