Merge pull request #409 from kratz00/gcc_10_warning_fixes

gcc 10 warning fixes
This commit is contained in:
John
2021-05-06 07:38:26 +02:00
committed by GitHub
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -68,8 +68,7 @@ bool DataType::dump(OutputFormat outputFormat, size_t length, bool appendDivisor
} }
result_t StringDataType::readRawValue(size_t offset, size_t length, const SymbolString& input, result_t StringDataType::readRawValue(size_t, size_t, const SymbolString&, unsigned int*) const {
unsigned int* value) const {
return RESULT_EMPTY; return RESULT_EMPTY;
} }
@@ -204,8 +203,7 @@ result_t StringDataType::writeSymbols(size_t offset, size_t length, istringstrea
} }
result_t DateTimeDataType::readRawValue(size_t offset, size_t length, const SymbolString& input, result_t DateTimeDataType::readRawValue(size_t, size_t, const SymbolString&, unsigned int*) const {
unsigned int* value) const {
return RESULT_EMPTY; return RESULT_EMPTY;
} }
@@ -353,7 +351,7 @@ result_t DateTimeDataType::readSymbols(size_t offset, size_t length, const Symbo
} }
*output << dec << setfill('0') << setw(2) << static_cast<unsigned>(d) << "." *output << dec << setfill('0') << setw(2) << static_cast<unsigned>(d) << "."
<< setw(2) << static_cast<unsigned>(m) << "." << static_cast<unsigned>(y + 1900); << setw(2) << static_cast<unsigned>(m) << "." << static_cast<unsigned>(y + 1900);
m = (int)(minutes%(24*60)); m = static_cast<int>(minutes%(24*60));
d = m/60; d = m/60;
*output << " " << setw(2) << dec << setfill('0') << static_cast<unsigned>(d); *output << " " << setw(2) << dec << setfill('0') << static_cast<unsigned>(d);
m -= d*60; m -= d*60;
+1 -1
View File
@@ -904,7 +904,7 @@ int main(int argc, char* argv[]) {
printFileChecksum(); printFileChecksum();
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} else { } else {
argp_help(&aargp, stderr, ARGP_HELP_STD_ERR, "ebuspicloader"); argp_help(&aargp, stderr, ARGP_HELP_STD_ERR, const_cast<char*>("ebuspicloader"));
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
} }