-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-Wunused:locals
gives false positives for some calls to transparent inline functions
#17753
Comments
looks like my own lens macro suffers the same issue, and it's a bit annoying to switch off warnings where ever i construct a lens. is there a workaround i can try maybe? |
any news on this? the problem still seems to persist in 3.4.0-RC1 |
It has to do with the tree representation |
Also faced this issue in optics-dev/Monocle#1484 |
@jtjeferreira thanks I just returned to my PR to fix unused bugs, so I'll try out your example. Sorry I missed last release cycle. Assigned myself as a reminder. |
Compiler version
3.3.0
Minimized code
Output
Expectation
No warnings are issued.
Other
This affects Monocle's macros such as
GenLens
.I'm not certain whether or not my example can be minimized further. Interestingly, calling a transparent inline function directly doesn't trigger any warnings.
The text was updated successfully, but these errors were encountered: