We would like a way to change what gperf emits when it’s falling through from one case to another in a switch block. At the moment we see /*FALLTHOUGH*/ and I did not find a command-line flag or inline declaration
that can alter that.
The reason we’d like this is that we’re migrating to GCC 7 from 5 and we’re using the gcc flag -Werror=implicit-fallthrough. In the rest of our code we use the macro FOLLY_FALLTHROUGH (defined here:
https://github.com/facebook/folly/blob/master/folly/CppAttributes.h#L56) to indicate intentional fallthrough in a way that compilers and other static analysis tooling can see.
Thanks,
Phil Willoughby