Consider checking -Wnonunit-statement
after macro expansion
#22546
Labels
-Wnonunit-statement
after macro expansion
#22546
Compiler version
3.3.5, 3.6.3
Minimized code
Output
Compiler warning / error:
Expectation
This code should not emit any warnings as the
foo()
statement is not discarded. This behaviour (checking for non-unit statements) is causing an issue forzio-test
users that have this warning enabled; see zio/zio#9233 and zio/zio#9552.The text was updated successfully, but these errors were encountered: