cppcheck fixes

This commit is contained in:
Wilson Snyder
2013-02-03 13:27:37 -05:00
parent 4a5a56f8ef
commit f07f6a26a8
23 changed files with 47 additions and 37 deletions
+1
View File
@@ -141,6 +141,7 @@ void VerilatedVcd::openNext (bool incFilename) {
if (m_filename[0]=='|') {
assert(0); // Not supported yet.
} else {
// cppcheck-suppress duplicateExpression
m_fd = ::open (m_filename.c_str(), O_CREAT|O_WRONLY|O_TRUNC|O_LARGEFILE|O_NONBLOCK
, 0666);
if (m_fd<0) {