[Beignet] [PATCH] GBE: fix uninitialized build warning.
Pan, Xiuli
xiuli.pan at intel.com
Tue Sep 6 02:51:07 UTC 2016
LGTM!
Thanks!
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Yang Rong
Sent: Tuesday, September 6, 2016 12:09 PM
To: beignet at lists.freedesktop.org
Cc: Yang, Rong R <rong.r.yang at intel.com>
Subject: [Beignet] [PATCH] GBE: fix uninitialized build warning.
Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
backend/src/backend/gen_insn_compact.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/backend/gen_insn_compact.cpp b/backend/src/backend/gen_insn_compact.cpp
index 5de451c..62fcb61 100644
--- a/backend/src/backend/gen_insn_compact.cpp
+++ b/backend/src/backend/gen_insn_compact.cpp
@@ -587,7 +587,7 @@ namespace gbe {
if(src0->file == GEN_IMMEDIATE_VALUE)
return -1;
- compact_table_entry *r;
+ compact_table_entry *r = NULL;
if(p->getCompactVersion() == 7) {
DataTypeBits b;
b.data = 0;
--
2.1.4
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list