From 837773ea1d95ed110087201988734548041a53bd Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 24 Jan 2018 19:51:33 +0100 Subject: [PATCH] Fix build with gcc2 Partial initializers are not supported. This is not needed anyway, the variable will be in .bss so it will be cleared to 0 by default. --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index 0f8357c2..ebdf4135 100644 --- a/src/misc.c +++ b/src/misc.c @@ -158,7 +158,7 @@ word Count_used_colors_area(dword* usage, word start_x, word start_y, // Get_current_palette() offers a READ-ONLY access. // TODO : Color cycling code use directly SDL_SetPalette() we should check // wether it should call Set_palette() instead. -static T_Palette Current_palette = {0}; +static T_Palette Current_palette; const T_Components * Get_current_palette(void) {