Opened 10 days ago

#73187 new defect

falcon @0.9.6.8: error: non-constant-expression cannot be narrowed from type 'GType' (aka 'unsigned long') to 'Falcon::int64' (aka 'long long') in initializer list [-Wc++11-narrowing]

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.11.6
Keywords: sequoia tahoe Cc: kwolcott
Port: falcon

Description

/opt/local/var/macports/build/falcon-c1845664/work/Falcon-0.9.6.8/modules/native/gtk/src/gtk_enums.cpp:63:29: error: non-constant-expression cannot be narrowed from type 'GType' (aka 'unsigned long') to 'Falcon::int64' (aka 'long long') in initializer list [-Wc++11-narrowing]
   63 |     { "G_TYPE_GTYPE",       G_TYPE_GTYPE },
      |                             ^~~~~~~~~~~~
/opt/local/include/glib-2.0/gobject/gvaluetypes.h:168:25: note: expanded from macro 'G_TYPE_GTYPE'
  168 | #define G_TYPE_GTYPE                     (g_gtype_get_type())
      |                                          ^~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/falcon-c1845664/work/Falcon-0.9.6.8/modules/native/gtk/src/gtk_enums.cpp:63:29: note: insert an explicit cast to silence this issue
   63 |     { "G_TYPE_GTYPE",       G_TYPE_GTYPE },
      |                             ^~~~~~~~~~~~
      |                             static_cast<int64>( )
/opt/local/include/glib-2.0/gobject/gvaluetypes.h:168:25: note: expanded from macro 'G_TYPE_GTYPE'
  168 | #define G_TYPE_GTYPE                     (g_gtype_get_type())
      |                                          ^~~~~~~~~~~~~~~~~~~~

Change History (0)

Note: See TracTickets for help on using tickets.