Use 'throw ()' for optimization in C++ mode also on clang.