Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #883284

clang-11 gtk-client warnings

Added by Marko Lindqvist 9 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
gui-gtk-3.22
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

gtk-clients do not compile with --enable-debug (-Werror) & clang-11 development version.

More info to follow.

0006-Fix-build-with-clang-11.patch (7.87 KB) 0006-Fix-build-with-clang-11.patch master Marko Lindqvist, 2020-10-07 06:37 AM
0009-Fix-build-with-clang-11.patch (7.88 KB) 0009-Fix-build-with-clang-11.patch S3_0, S2_6 Marko Lindqvist, 2020-10-07 06:37 AM

History

#1 Updated by Marko Lindqvist 9 months ago

../../../../src/client/gui-gtk-3.0/unitselect.c:936:45: error: cast to smaller integer type 'enum unit_select_location_mode' from 'gpointer' (aka 'void *') [-Werror,-Wvoid-pointer-to-enum-cast]
enum unit_select_location_mode loc_mode = (enum unit_select_location_mode) mode_data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/client/gui-gtk-3.0/unitselect.c:1084:40: error: cast to smaller integer type 'enum unit_select_location_mode' from 'gpointer' (aka 'void *') [-Werror,-Wvoid-pointer-to-enum-cast]
enum unit_select_location_mode loc = (enum unit_select_location_mode) data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/client/gui-gtk-3.0/unitselect.c:1122:40: error: cast to smaller integer type 'enum unit_select_location_mode' from 'gpointer' (aka 'void *') [-Werror,-Wvoid-pointer-to-enum-cast]
enum unit_select_location_mode loc = (enum unit_select_location_mode) data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/client/gui-gtk-3.0/unitselect.c:1179:40: error: cast to smaller integer type 'enum unit_select_location_mode' from 'gpointer' (aka 'void *') [-Werror,-Wvoid-pointer-to-enum-cast]
enum unit_select_location_mode loc = (enum unit_select_location_mode) data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#3 Updated by Marko Lindqvist 7 months ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF