GCC new warnings fixed (GCC) 8.1.1 20180531

This commit is contained in:
Bertrand Songis
2018-08-03 23:02:43 +02:00
parent a77f00d665
commit 131078e3a0
15 changed files with 62 additions and 42 deletions
+4 -2
View File
@@ -509,8 +509,9 @@ typedef uint8_t swarnenable_t;
#if defined(PCBHORUS)
#include "gui/480x272/layout.h"
#include "gui/480x272/topbar.h"
#define LAYOUT_NAME_LEN 10
PACK(struct CustomScreenData {
char layoutName[10];
char layoutName[LAYOUT_NAME_LEN];
Layout::PersistentData layoutData;
});
#define CUSTOM_SCREENS_DATA \
@@ -690,8 +691,9 @@ PACK(struct TrainerData {
#if defined(PCBHORUS)
#include "gui/480x272/theme.h"
#define THEME_NAME_LEN 8
#define THEME_DATA \
NOBACKUP(char themeName[8]); \
NOBACKUP(char themeName[THEME_NAME_LEN]); \
NOBACKUP(Theme::PersistentData themeData);
#else
#define THEME_DATA