limbonaut / limboai

LimboAI - Behavior Trees and State Machines for Godot 4
MIT License
780 stars 24 forks source link

Fix GCC warning for unhandled 'PACKED_VECTOR4_ARRAY' in switch #104

Closed Rubonnek closed 1 month ago

Rubonnek commented 1 month ago

Fixes the following warning:

[ 34%] modules/limboai/util/limbo_utility.cpp: In member function 'PackedInt32Array LimboUtility::get_property_hints_allowed_for_type(Variant::Type) const':
modules/limboai/util/limbo_utility.cpp:426:16: warning: enumeration value 'PACKED_VECTOR4_ARRAY' not handled in switch [-Wswitch]
  426 |         switch (p_type) {
      |                ^
Rubonnek commented 1 month ago

I didn't realize this was merged upstream recently. This should be part of 4.3 support instead -- I'm moving this change to #64.