Graphite Fails to Compile in recent Electronite version 22 - arithmetic between different enumeration types ('status_t' and 'graphite2::errors') is deprecated #78
../../third_party/graphite/graphite2/src/Pass.cpp:197:92: error: arithmetic between different enumeration types ('status_t' and 'graphite2::errors') is deprecated [-Werror,-Wdeprecated-enum-enum-conversion]
It appears that starting in Electron v22, the build environment has changed so that this has been escalated from a build warning to an error.
Electronite is a fork of Electron that adds Graphite support. And starting with Electron v22.0.0 (https://github.com/unfoldingWord/electronite/tree/electronite-v22.0.0-beta), graphite fails to compile in the Electron Build environment. There are three lines in:
It appears that starting in Electron v22, the build environment has changed so that this has been escalated from a build warning to an error.
Found this article addressing the issue: https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5054?view=msvc-170
Created a patch to handle this (as well as the std::iterator deprecated error mentioned in https://github.com/silnrsi/graphite/issues/76):