From 1e3dcd203dfa8af48c406b7c85cfc7e0e1cef1e7 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 29 Jul 2013 10:37:58 -0400 Subject: [PATCH] Fix clang warning, bug668. --- Changes | 2 ++ include/verilated.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index e3473e6fc..da42dd133 100644 --- a/Changes +++ b/Changes @@ -11,6 +11,8 @@ indicates the contributor was also the author of the fix; Thanks! **** Fix interface ports with comma lists, msg1058. [Ed Lander] +**** Fix clang warnings, bug668. [Yutetsu Takatsukasa] + * Verilator 3.850 2013-06-02 diff --git a/include/verilated.h b/include/verilated.h index c39200d9c..e7988eea3 100644 --- a/include/verilated.h +++ b/include/verilated.h @@ -871,7 +871,7 @@ static inline WDataOutP VL_OR_W(int words, WDataOutP owp,WDataInP lwp,WDataInP r } // EMIT_RULE: VL_CHANGEXOR: oclean=1; obits=32; lbits==rbits; static inline IData VL_CHANGEXOR_W(int words, WDataInP lwp,WDataInP rwp){ - IData od; + IData od = 0; for (int i=0; (i < words); i++) od |= (lwp[i] ^ rwp[i]); return(od); }