Closed codusnocturnus closed 3 years ago
Covered by PR #195
Dear @eranpeer Can you please have a look on one of these PR's? #201 and #195 . They are trying to solve the same problem. And they are opened for quite a long time. I think it would worth a new release. Anyhow, thank you for your fantastic framework. I really love it.
I fixed PR #195, please merge it, there are some people who need it.
I'm using Catch v2.12.1 and received the error error: ‘CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS’ was not declared in this scope
on compilation
The referenced changes fixed it for me
Are there any plans to release this fix?
I'm using Catch v2.12.1 and received the error
error: ‘CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS’ was not declared in this scope
on compilation The referenced changes fixed it for me
Same here
I'm on Catch v2.13.4
and I can confirm this is still an issue. Just chiming in to increase visibility.
I hand ported #201 and it fixes the issue. FWIW, it looks like a quick and easy PR to fix the issue. It's a 6 line change that will help a lot of people use FakeIt. Cheers!
Fixed in 2.0.6.
Catch2 changed their approach to warning suppression macros such that the "UNSUPPRESS" macros are no longer defined, which breaks compilation for single_header/catch/fakeit.hpp at line 1225.
Read the commit message here for details: https://github.com/catchorg/Catch2/commit/849f2848bdf625a7b6248e4e62ba0e39ee609634#diff-a010dcdfe8ba1736a2dc3acde52c3e89
Compilation succeeds if I change CatchAdapter::Fail() to: