color_table array should be const.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
@@ -148,7 +148,7 @@ typedef struct {
|
|||||||
uint8_t rgb_color[3]; ///< RGB values for the color
|
uint8_t rgb_color[3]; ///< RGB values for the color
|
||||||
} ColorEntry;
|
} ColorEntry;
|
||||||
|
|
||||||
static ColorEntry color_table[] = {
|
static const ColorEntry color_table[] = {
|
||||||
{ "AliceBlue", { 0xF0, 0xF8, 0xFF } },
|
{ "AliceBlue", { 0xF0, 0xF8, 0xFF } },
|
||||||
{ "AntiqueWhite", { 0xFA, 0xEB, 0xD7 } },
|
{ "AntiqueWhite", { 0xFA, 0xEB, 0xD7 } },
|
||||||
{ "Aqua", { 0x00, 0xFF, 0xFF } },
|
{ "Aqua", { 0x00, 0xFF, 0xFF } },
|
||||||
|
Reference in New Issue
Block a user