diff --git a/include/verilated_fst_c.cpp b/include/verilated_fst_c.cpp index 874e58bc3..7b8c01dc9 100644 --- a/include/verilated_fst_c.cpp +++ b/include/verilated_fst_c.cpp @@ -204,7 +204,7 @@ void VerilatedFst::declArray(vluint32_t code, const char* name, int dtypenum, fs } void VerilatedFst::declFloat(vluint32_t code, const char* name, int dtypenum, fstVarDir vardir, fstVarType vartype, bool array, int arraynum) { - declare(code, name, dtypenum, vardir, vartype, array, arraynum, 31, 0); + declare(code, name, dtypenum, vardir, vartype, array, arraynum, 31, 0); // LCOV_EXCL_LINE } void VerilatedFst::declDouble(vluint32_t code, const char* name, int dtypenum, fstVarDir vardir, fstVarType vartype, bool array, int arraynum) { @@ -266,7 +266,7 @@ void VerilatedFst::emitWData(vluint32_t code, const WData* newvalp, int bits) { VL_ATTR_ALWINLINE void VerilatedFst::emitFloat(vluint32_t code, float newval) { - fstWriterEmitValueChange(m_fst, m_symbolp[code], &newval); + fstWriterEmitValueChange(m_fst, m_symbolp[code], &newval); // LCOV_EXCL_LINE } VL_ATTR_ALWINLINE diff --git a/include/verilated_save.cpp b/include/verilated_save.cpp index 3b6e3732b..e5df393b2 100644 --- a/include/verilated_save.cpp +++ b/include/verilated_save.cpp @@ -194,8 +194,8 @@ void VerilatedSave::flush() VL_MT_UNSAFE_ONE { ssize_t got = ::write(m_fd, wp, remaining); if (got > 0) { wp += got; - } else if (got < 0) { - if (errno != EAGAIN && errno != EINTR) { + } else if (VL_UNCOVERABLE(got < 0)) { + if (VL_UNCOVERABLE(errno != EAGAIN && errno != EINTR)) { // write failed, presume error (perhaps out of disk space) std::string msg = std::string(__FUNCTION__) + ": " + strerror(errno); VL_FATAL_MT("", 0, "", msg.c_str()); @@ -223,8 +223,8 @@ void VerilatedRestore::fill() VL_MT_UNSAFE_ONE { ssize_t got = ::read(m_fd, m_endp, remaining); if (got > 0) { m_endp += got; - } else if (got < 0) { - if (errno != EAGAIN && errno != EINTR) { + } else if (VL_UNCOVERABLE(got < 0)) { + if (VL_UNCOVERABLE(errno != EAGAIN && errno != EINTR)) { // write failed, presume error (perhaps out of disk space) std::string msg = std::string(__FUNCTION__) + ": " + strerror(errno); VL_FATAL_MT("", 0, "", msg.c_str()); diff --git a/include/verilated_vcd_sc.h b/include/verilated_vcd_sc.h index 7b8ffa33e..dcadc8bc2 100644 --- a/include/verilated_vcd_sc.h +++ b/include/verilated_vcd_sc.h @@ -77,7 +77,7 @@ private: virtual void set_time_unit(int exponent10_seconds) {} // deprecated #endif #if defined(NC_SYSTEMC) || (SYSTEMC_VERSION >= 20111100) - virtual void set_time_unit(double v, sc_time_unit tu) {} + virtual void set_time_unit(double v, sc_time_unit tu) {} // LCOV_EXCL_LINE #endif //--------------------------------------------------