Specify -fno-exceptions in source file

William S Fulton wsf@fultondesigns.co.uk
Thu Apr 16 06:14:00 GMT 2015


Is it possible to specify -fno-exceptions for one translation unit?
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.

William



More information about the Gcc-help mailing list