On 16 April 2015 at 07:13, William S Fulton wrote: > Is it possible to specify -fno-exceptions for one translation unit? Yes. > I'd like to use -fno-exceptions for just one particular test file > without having to modify an entire build system. My attempts to use > '#pragma GCC diagnostic' didn't get anywhere. That's for controlling compiler diagnostics (errors and warnings), but -fno-exceptions is not a diagnostic option.