Ticket #45096

sdl2: error: initializer overrides prior initialization of this subobject

Date d'ouverture: 2022-07-14 09:13 Dernière mise à jour: 2022-07-14 09:25

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Jalon:
Priorité:
9 - le plus élevé
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
1

Détails

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
  • Propriétaire Update from (Aucun) to cazfi
  • Résolution Update from Aucun to Accepted
Commentaire

Fix attached. Will push immediately as an emergency fix.

2022-07-14 09:25 Updated by: cazfi
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Attachment File List

Modifier

Please login to add comment to this ticket » Connexion