diff --git a/include/verilated.cpp b/include/verilated.cpp index 61f0c97e1..158cdbac3 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -1584,10 +1584,6 @@ IData _vl_vsscanf(FILE* fp, // If a fscanf _vl_vsss_skipspace(fp, floc, fromp, fstr); _vl_vsss_read_str(fp, floc, fromp, fstr, t_tmp, "+-.0123456789eE"); if (!t_tmp[0]) goto done; - union { - double r; - int64_t ld; - } u; // Timeunit was read earlier from up-front arguments const int userUnits = Verilated::threadContextp()->impp()->timeFormatUnits(); // 0..-15 diff --git a/include/verilatedos.h b/include/verilatedos.h index 9e69f9a1e..ccade5345 100644 --- a/include/verilatedos.h +++ b/include/verilatedos.h @@ -351,6 +351,7 @@ extern "C" void __gcov_dump(); # pragma warning(disable:4244) // C4244: conversion from 'uint64_t' to 'uint_32_t', possible loss of data # pragma warning(disable:4245) // C4245: conversion from 'int' to 'unsigned', signed/unsigned mismatch # pragma warning(disable:4267) // C4267: conversion from 'size_t' to 'int', possible loss of data +# pragma warning(disable:4316) // C4316: 'Vtop': object allocated on the heap may not be aligned 64 # pragma warning(disable:4996) // C4996: sscanf/fopen/etc may be unsafe # endif #endif diff --git a/src/V3Force.cpp b/src/V3Force.cpp index 4772d3d14..553fc46d0 100644 --- a/src/V3Force.cpp +++ b/src/V3Force.cpp @@ -205,6 +205,7 @@ public: return currInitp; } else { lhsDtypep->v3fatalSrc("Unhandled type"); + return nullptr; // LCOV_EXCL_LINE } } static AstNodeExpr* wrapIntoExprp(AstVarRef* const refp, AstNodeExpr* const exprp,