diff --git a/include/units_provider.h b/include/units_provider.h index 5b2bcd4e96..5d12878ce5 100644 --- a/include/units_provider.h +++ b/include/units_provider.h @@ -241,6 +241,7 @@ public: wxString msg = wxString::Format( wxT( "Unhandled unit data type %d" ), static_cast( aUnits ) ); wxCHECK_MSG( false, EDA_DATA_TYPE::UNITLESS, msg ); + return EDA_DATA_TYPE::UNITLESS; // Note that this is unreachable but g++-12 doesn't know that. } /// @brief The string that is used in the UI to represent a null value