MSVC 2019 Fixes (#285)
* resolvename is declared to return a bool value, but instead can return NULL. MSVC 2019 does not like that an throws a compile error. Fixed by returning false instead of NULL. * When compiling with MSVC 2019, the UPB_ASSUME macro expands out to: do {} if (false && (ok)) That isn't valid C code. Fixed by adding an elif for MSVC that uses __assume(0), which is similar to gcc's __builtin_unreachable according to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0627r0.pdf.pull/13171/head
parent
a1c2caeb25
commit
93e2a40881
2 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue