From 424769c32b455295f3bd5889738e07ab0dea3607 Mon Sep 17 00:00:00 2001 From: Jan Van Winkel Date: Mon, 25 May 2020 14:13:12 +0200 Subject: [PATCH] Fix warning for unused param in VL_RTOIROUND_Q_D (#2356) --- docs/CONTRIBUTORS | 1 + include/verilated.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index 189e5d51f..c415eb39b 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -17,6 +17,7 @@ Howard Su Huang Rui Iztok Jeras James Hanlon +Jan Van Winkel Jeremy Bennett John Coiner John Demme diff --git a/include/verilated.h b/include/verilated.h index bddb1c9fd..70adce61b 100644 --- a/include/verilated.h +++ b/include/verilated.h @@ -2384,7 +2384,7 @@ static inline WDataOutP VL_SEL_WWII(int obits, int lbits, int, int, WDataOutP ow /// Return QData from double (numeric) // EMIT_RULE: VL_RTOIROUND_Q_D: oclean=dirty; lclean==clean/real -static inline QData VL_RTOIROUND_Q_D(int bits, double lhs) VL_PURE { +static inline QData VL_RTOIROUND_Q_D(int, double lhs) VL_PURE { // IEEE format: [63]=sign [62:52]=exp+1023 [51:0]=mantissa // This does not need to support subnormals as they are sub-integral lhs = VL_ROUND(lhs);