Enable warnings=extra on clang and GCC testers.

And remove 2 warnings from warnings=extra.
This commit is contained in:
marxin
2019-02-27 10:07:30 +01:00
parent 612a109b81
commit e7f22ebdcd
14 changed files with 135 additions and 124 deletions

View File

@ -505,7 +505,7 @@ void AppxPackager::add_file(String p_file_name, const uint8_t *p_buffer, size_t
while (p_len - step > 0) {
size_t block_size = (p_len - step) > BLOCK_SIZE ? BLOCK_SIZE : (p_len - step);
size_t block_size = (p_len - step) > BLOCK_SIZE ? (size_t)BLOCK_SIZE : (p_len - step);
for (uint32_t i = 0; i < block_size; i++) {
strm_in.write[i] = p_buffer[step + i];