Closed Arkham closed 3 years ago
Thank you @Arkham. This warning is generated by clang (and not g++). Rather than disabling the warning, may I suggest that we take care of this by adding (void)I
inside the lambda so that there is always a use of I
? This problem is currently only on Release builds, where LLVM_DEBUG
is removed. Adding a forced use (void)I
should take care of it.
Please edit your PR and I'll be happy to merge it.
hey @vaivaswatha gladly! updated and pushed :)
Thanks @Arkham
Trying to compile this on nix 21.05 caused this error:
Here are the files I used:
After making this change, the project compiles fine!