blob: 479a0ff4b53e74de0a6160e078cd4e8b11164649 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From a51f61d675a0e7d6649182c6a1325ceab8342df2 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Mon, 4 Jan 2016 22:47:29 -0800
4Subject: [PATCH] test-backface-culling.c: fix may be used uninitialized error
5
6Fixed when gcc -O:
7test-backface-culling.c:206:7: error: 'cull_front' may be used uninitialized in this function [-Werror=maybe-uninitialized]
8| validate_part (framebuffer,
9| ^
10| cc1: some warnings being treated as errors
11
12Upstream-Status: Pending
13
14Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
15---
16 tests/conform/test-backface-culling.c | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
18
19diff --git a/tests/conform/test-backface-culling.c b/tests/conform/test-backface-culling.c
20index e90c2f5..7c45592 100644
21--- a/tests/conform/test-backface-culling.c
22+++ b/tests/conform/test-backface-culling.c
23@@ -164,7 +164,8 @@ validate_result (CoglFramebuffer *framebuffer, int y_offset)
24
25 for (draw_num = 0; draw_num < 16; draw_num++)
26 {
27- CoglBool cull_front, cull_back;
28+ CoglBool cull_front = FALSE;
29+ CoglBool cull_back = FALSE;
30 CoglPipelineCullFaceMode cull_mode;
31
32 if (USE_LEGACY_STATE (draw_num))
33--
341.7.9.5
35