Re: [capnproto] Can't compile 0.8 release with -Wshadow -Werror

2020-09-14 Thread Jeremy Steward
Thanks for the quick reply! See response inline below. > On Sep 14, 2020, at 16:02, Kenton Varda wrote: > > Hi Jeremy, > > The `Which` enums are intentionally not `enum class` because I wanted the > enumerants to appear as constants in the containing class, as this enum > actually represents

Re: [capnproto] Can't compile 0.8 release with -Wshadow -Werror

2020-09-14 Thread 'Kenton Varda' via Cap'n Proto
Hi Jeremy, The `Which` enums are intentionally not `enum class` because I wanted the enumerants to appear as constants in the containing class, as this enum actually represents the union tags for the containing class, so the `Which` part is sort of superfluous. All other enums, though, are

[capnproto] Can't compile 0.8 release with -Wshadow -Werror

2020-09-14 Thread Jeremy Steward
Hi Kenton / to whom it may concern! I’m using capnproto and when I try to use the library I seem to be getting the following errors from schema.capnp.h. They seem related to the “Which” enum with -Wshadow -Werror. In file included from