7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-11 10:00:13 +00:00

Fix unreachable code warnings on non-OSX.

This commit is contained in:
Alex Shvartzkop 2024-09-05 06:17:16 +03:00
parent 36019314e9
commit c1e255c4fe

View File

@ -133,8 +133,7 @@ public:
{
#ifndef __WXMAC__
return GetAppSettings<T>();
#endif
#else
T* ret = nullptr;
size_t typeHash = typeid( T ).hash_code();
@ -162,6 +161,7 @@ public:
m_app_settings_cache[typeHash] = ret;
return ret;
#endif
}
/**