[Beignet] [PATCH] GBE: fix uninitialized build warning.

Yang Rong rong.r.yang at intel.com
Tue Sep 6 04:09:07 UTC 2016


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



More information about the Beignet mailing list