From e7ccd1857537bc10de469bf6aa9670cf5211a0e0 Mon Sep 17 00:00:00 2001 From: Eldritch Cheese Date: Wed, 4 Jan 2023 10:47:27 -0600 Subject: [PATCH] [VTA] Provide zero-initialization for VTAGenericInsn Previously, this line caused a warning for `-Wmaybe-uninitialized` when compiling in g++ 11.3.0. --- vta/runtime/runtime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vta/runtime/runtime.cc b/vta/runtime/runtime.cc index b139fbda6819..c3d37a13133b 100644 --- a/vta/runtime/runtime.cc +++ b/vta/runtime/runtime.cc @@ -915,7 +915,7 @@ class InsnQueue : public BaseQueue { protected: /*! \return Add new instruction to the buffer. */ VTAGenericInsn* NextInsn() { - VTAGenericInsn insn; + VTAGenericInsn insn = {}; dram_buffer_.push_back(insn); return &dram_buffer_.back(); }