Tíquete #45096

sdl2: error: initializer overrides prior initialization of this subobject

: 2022-07-14 09:13 Última Atualização: 2022-07-14 09:25

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
9 - Highest
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
1

Details

osx and clang_debug CI builds fail:

../../../client/gui-sdl2/gui_main.c:489:70: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
SDL_Rect rect_north = {.x = 0, .y = 0, .w = main_data.map->w, .y = SCROLL_MAP_AREA};
BR]

../../../client/gui-sdl2/gui_main.c:404:33: note: expanded from macro 'SCROLL_MAP_AREA'

#define SCROLL_MAP_AREA 1

../../../client/gui-sdl2/gui_main.c:489:39: note: previous initialization is here

SDL_Rect rect_north = {.x = 0, .y = 0, .w = main_data.map->w, .y = SCROLL_MAP_AREA};

Likely the latter '.y' is supposed to be '.h'.

Ticket History (3/4 Histories)

2022-07-14 09:13 Updated by: cazfi
  • New Ticket "sdl2: error: initializer overrides prior initialization of this subobject" created
2022-07-14 09:24 Updated by: cazfi
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
Comentário

Fix attached. Will push immediately as an emergency fix.

2022-07-14 09:25 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Attachment File List

Editar

Please login to add comment to this ticket » Login