任务单 #45096

sdl2: error: initializer overrides prior initialization of this subobject

开放日期: 2022-07-14 09:13 最后更新: 2022-07-14 09:25

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
9 - Highest
严重性:
5 - Medium
处理结果:
Fixed
文件:
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'.

任务单历史 (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
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
评论

Fix attached. Will push immediately as an emergency fix.

2022-07-14 09:25 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

Attachment File List

编辑

Please login to add comment to this ticket » 登录名