rollbear / trompeloeil

Header only C++14 mocking framework
Boost Software License 1.0
802 stars 85 forks source link

Mis-spelled preprocessor symbol TROMPELOEIL_GCC_VERSION #298

Closed AndrewPaxie closed 1 year ago

AndrewPaxie commented 1 year ago

In version 44 of Trompeloeil, there is a mis-spelling of the preprocessor symbol TROMPELOEIL_GCC_VERSION on lines 4023 and 4026.

The effect is to disable the -Wconversion warning for all versions of the GCC compiler greater than or equal to 7.0.0, when perhaps a more restricted range was desired.

rollbear commented 1 year ago

OK, that is unnecessary, but fortunately not really a problem. I'll fix it later today. No need for an emergency release. Phiew!

rollbear commented 1 year ago

Fixed now. The problem is really only for gcc-7 and only when building as C++17. Very odd. I have not bothered restricting this section to C++17 only. Thanks for reporting!