Skip to content

Commit

Permalink
Fix use-unitialized issue reported by the GCC Host compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Apr 30, 2021
1 parent cacbcf9 commit 84fc04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Wiring/FakePgmSpace.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ int memcmp_aligned(const void* ptr1, const void* ptr2, unsigned len);
*
*/
#define LOAD_PSTR(name, flash_str) \
char name[ALIGNUP4(sizeof(flash_str))] __attribute__((aligned(4))); \
char __attribute__((aligned(4))) name[ALIGNUP4(sizeof(flash_str))] = {}; \
memcpy_aligned(name, flash_str, sizeof(flash_str));

#define _FLOAD(pstr) \
Expand Down

0 comments on commit 84fc04c

Please sign in to comment.