1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0025078: Coding rules - eliminate GCC warning -Wclobbered

GCC warning -Wclobbered suppressed in Standard_ErrorHandler.hxx when OCC_CONVERT_SIGNALS or NO_CXX_EXCEPTIONS are used
This commit is contained in:
abv 2015-11-08 20:17:47 +03:00
parent 04e9307054
commit 6fab2d4f64

View File

@ -67,6 +67,11 @@
#define catch(Error) else if(_Function.Catches(STANDARD_TYPE(Error)))
#define OCC_CATCH_SIGNALS
// Suppress GCC warning "variable ... might be clobbered by 'longjmp' or 'vfork'"
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wclobbered"
#endif
#elif defined(OCC_CONVERT_SIGNALS)
// Exceptions are raied as usual, signal cause jumps in the nearest
@ -77,6 +82,11 @@
_aHandler.Error()->Reraise(); \
}
// Suppress GCC warning "variable ... might be clobbered by 'longjmp' or 'vfork'"
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wclobbered"
#endif
#else
// Normal Exceptions (for example WNT with MSVC and option /GHa)