Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:59

0001 // Copyright (c) 2018 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 //!@file
0015 //! Restores compiler warnings suppressed by inclusion of Standard_WarningsDisable.hxx.
0016 //!
0017 //! Standard_WarningsDisable.hxx disables all compiler warnings.
0018 //! Standard_WarningsRestore.hxx restore the previous state of warnings.
0019 //!
0020 //! Use these headers to wrap include directive containing external (non-OCCT) 
0021 //! header files to avoid compiler warnings to be generated for these files.
0022 //! They should always be used in pair:
0023 //!
0024 //! @code
0025 //! #include <Standard_WarningsDisable.hxx>
0026 //! #include <dirty_header.h> // some header that can generate warnings
0027 //! #include <Standard_WarningsRestore.hxx>
0028 //! @endcode
0029 
0030 #if defined(__clang__)
0031   #pragma clang diagnostic pop
0032 #elif defined(_MSC_VER)
0033   #pragma warning(pop)
0034 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
0035   #pragma GCC diagnostic pop
0036 #endif
0037