Add -Wuninitialized -Wunused -Wcast-align to warnings checked by kitchen_sink (and fixup warnings) (#125)

This commit is contained in:
Graham Sanderson
2021-02-15 10:06:12 -06:00
committed by graham sanderson
parent a59fd524d5
commit 6f94f6a3d7
15 changed files with 32 additions and 31 deletions

View File

@ -19,7 +19,7 @@ extern void __real_free(void *mem);
extern char __StackLimit; /* Set by linker. */
static inline void check_alloc(void *mem, uint8_t size) {
static inline void check_alloc(__unused void *mem, __unused uint8_t size) {
#if PICO_MALLOC_PANIC
if (!mem || (((char *)mem) + size) > &__StackLimit) {
panic("Out of memory");