-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add -Werror to acceptance builds for C and CPP #4369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -259,11 +259,12 @@ uint8_t SdFile::make83Name(const char* str, uint8_t* name) { | |
i = 8; // place for extension | ||
} else { | ||
// illegal FAT characters | ||
uint8_t b; | ||
#if defined(__AVR__) | ||
uint8_t b; | ||
PGM_P p = PSTR("|<>^+=?/[];,*\"\\"); | ||
while ((b = pgm_read_byte(p++))) if (b == c) return false; | ||
#elif defined(__arm__) | ||
uint8_t b; | ||
const uint8_t valid[] = "|<>^+=?/[];,*\"\\"; | ||
const uint8_t *p = valid; | ||
while ((b = *p++)) if (b == c) return false; | ||
|
@@ -905,7 +906,7 @@ uint8_t SdFile::rmRfStar(void) { | |
if (!f.remove()) return false; | ||
} | ||
// position to next entry if required | ||
if (curPosition_ != (32*(index + 1))) { | ||
if (curPosition_ != (uint32_t)(32*(index + 1))) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. index is uint16_t, and the value is being expanded. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't mean to expand it, thought curPosition_ was 32-bits. Will correct to uint16_t. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Misread your comment, will move the cast inside. No 16 bits. |
||
if (!seekSet(32*(index + 1))) return false; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since there's a cast to uint8_t now, masking the low byte with
& 0xff
is not needed.