Open CASCADE Technology  7.7.0.dev

Standard_WarningsRestore.hxx File Reference

Restores compiler warnings suppressed by inclusion of Standard_WarningsDisable.hxx. More...

Detailed Description

Restores compiler warnings suppressed by inclusion of Standard_WarningsDisable.hxx.

Standard_WarningsDisable.hxx disables all compiler warnings. Standard_WarningsRestore.hxx restore the previous state of warnings.

Use these headers to wrap include directive containing external (non-OCCT) header files to avoid compiler warnings to be generated for these files. They should always be used in pair:

#include <dirty_header.h> // some header that can generate warnings
Suppresses compiler warnings.
Restores compiler warnings suppressed by inclusion of Standard_WarningsDisable.hxx.