Repository navigation
Conversation
|
Want a hack to get rid of the warnings? #define IS_UNUSED IS_UNUSED
#define IS_CONST IS_CONST
#define IS_TMP_VAR IS_TMP_VAR
#define IS_VAR IS_VAR
#define IS_CV IS_CVput this after the enum definition. Anyway, is it worth it doing these (=this PR) kinds of changes? It takes reviewer effort to check for correctness and debugging effort to resolve issues like the warnings from CI. For me, the code was already clear in the expectation of what is allowed to be passed tbh. |
58509e0 to
b2335f1
Compare
And use the new type to improve clarity rather than just a uint8_t
0e74282 to
1b26907
Compare
I do think it is worth as the parameter names aren't always obvious and it turns out some cases aren't just restricted to those values although their name might imply it. Arguably the fact the VM was using these to do some preprocessor logic is also a bit of a code smell :) |
No description provided.