SWDEV-306940 - Fix hip errors/warnings by CppCheck (#2486)

Change-Id: I91f5e97b0c7ca80b6d21fa66d24e3cf9fde716a9

[ROCm/hip commit: 610b859b34]
Šī revīzija ir iekļauta:
Satyanvesh Dittakavi
2022-02-24 20:57:04 +05:30
revīziju iesūtīja GitHub
vecāks 1be987268e
revīzija 79e2bb73b8
7 mainīti faili ar 16 papildinājumiem un 22 dzēšanām
@@ -393,7 +393,6 @@ void ResultDatabase::DumpCsv(string fileName) {
// ****************************************************************************
bool ResultDatabase::IsFileEmpty(string fileName) {
bool fileEmpty;
ifstream file(fileName.c_str());
@@ -401,6 +400,7 @@ bool ResultDatabase::IsFileEmpty(string fileName) {
if (!file.good()) {
return true;
} else {
bool fileEmpty;
fileEmpty = (bool)(file.peek() == ifstream::traits_type::eof());
file.close();