github: enable warnings

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2023-05-31 15:11:31 +02:00
parent 5f183bfc42
commit 5b0e19438a
10 changed files with 26 additions and 20 deletions

View file

@ -58,7 +58,10 @@ bool ConfigFile::seekRecordByIndex(uint16_t ndx) {
if(!this->file) {
return false;
}
if(((this->header.recordSize * ndx) + this->header.length) > this->file.size()) return false;
if(((this->header.recordSize * ndx) + this->header.length) > this->file.size()) {
return false;
}
return true;
}
bool ConfigFile::readString(char *buff, size_t len) {
if(!this->file) return false;