[FL-2520] FW build with -Wextra (#1185)
* Fixing compiler warnings with -Wextra * More warnings suppression, WIP * Even more warning fixes * Added new lines at end of text files. * Padding fix * Additional fixes to warnings on different build configurations; added -Wextra to default build pipeline * Fixes for Secplus v1 * -additional warnings * +-Wredundant-decls fixes * FuriHal: print stack overflow task name in console * FuriHal: add missing include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -228,4 +228,4 @@ static bool file_stream_delete_and_insert(
|
||||
string_clear(scratch_name);
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
@@ -44,4 +44,4 @@ FS_Error file_stream_get_error(Stream* stream);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -217,7 +217,7 @@ bool stream_delete_and_insert_vaformat(
|
||||
string_init_vprintf(data, format, args);
|
||||
StreamWriteData write_data = {
|
||||
.data = (uint8_t*)string_get_cstr(data), .size = string_size(data)};
|
||||
bool result = stream_delete_and_insert(stream, 0, stream_write_struct, &write_data);
|
||||
bool result = stream_delete_and_insert(stream, delete_size, stream_write_struct, &write_data);
|
||||
string_clear(data);
|
||||
|
||||
return result;
|
||||
@@ -333,4 +333,4 @@ void stream_dump_data(Stream* stream) {
|
||||
printf("\r\n");
|
||||
printf("DATA END\r\n");
|
||||
stream_seek(stream, tell, StreamOffsetFromStart);
|
||||
}
|
||||
}
|
||||
|
@@ -333,4 +333,4 @@ void stream_dump_data(Stream* stream);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -7,7 +7,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define STREAM_CACHE_SIZE 512
|
||||
#define STREAM_CACHE_SIZE 512u
|
||||
|
||||
typedef struct StreamVTable StreamVTable;
|
||||
|
||||
|
@@ -176,4 +176,4 @@ static size_t string_stream_write_char(StringStream* stream, char c) {
|
||||
stream->index++;
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
@@ -15,4 +15,4 @@ Stream* string_stream_alloc();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user