Currently our windows builds will fail with an error "C2220" if an exception parameter is unused (e.g. try {} catch (const DBException&e)
{ log() << "whatever"; throw;}). However non-Windows builds do not fail, resulting in the failure first being noticed on evergreen or worse, after push. Clang has an option -Wunused-exception-parameter; if this was turned on, developers using clang would catch it earlier.
Unfortuately it appears GCC does not have an equivalent.
- causes
-
SERVER-45067 Fix fuzzer build by removing unused exception identifier
- Closed