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
Yeah I got a repro here. I'm pretty sure this didn't used to trigger a warning.
_##ENUM_TYPENAME##_constants_string is just a way to pass the enum string from where it was declared (usually a .h file) to where it can be implemented (usually in a .m file).
Oh I forgot to mention: I discovered a couple of clang versions back _Pragma("clang diagnostic ignored \"-Wunused-value\"") stopped working. I suspect a regression, and I'm surprised it's not fixed yet.
…ang diagnostic ignored \"-Wunused-value\"")` to suppress "Unused variable" warnings as pointed out in #3.
Pretty sure these warnings didn't show up with the version of Xcode/clang that I wrote JREnum with.
Anyway, this is kinda academic since a couple of versions back `_Pragma("clang diagnostic ignored \"-Wunused-value\"")` stopped working. I'm putting this in here anyway hoping it starts working again in a future version of clang.
… Unused variable '_AZQuadrant_constants_string'
i tried wrapping the whole macro in
`#pragma clang diagnostic push
pragma clang diagnostic ignored "-Wunused-value"
"JREnumDeclare…"
pragma clang diagnostic pop`
or just wrapping the
static NSString *_##ENUM_TYPENAME##_constants_string = @"" #ENUM_CONSTANTS;
line, but didn't help. actually, tried wrapping the single line with the weird `_Pragma( blah blah blah) format - that "supposedly" works with Macros.
I finally tied to just convert the whole thing to a straight function… but i can't figure out what the hell
##ByValue();
etc are doing.any advice?
The text was updated successfully, but these errors were encountered: