You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Graphite Fails to Compile in recent Electronite version 22 - arithmetic between different enumeration types ('status_t' and 'graphite2::errors') is deprecated
#78
Closed
PhotoNomad0 opened this issue
Dec 6, 2022
· 0 comments
../../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 #76):
The text was updated successfully, but these errors were encountered: