Gazebo Utils

API Reference

3.0.0
SuppressWarning.hh File Reference
#include <gz/utils/detail/SuppressWarning.hh>

Go to the source code of this file.

Macros

#define GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION    DETAIL_GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION
 Use this to suppress deprecation warnings. This may be useful when retaining tests for deprecated methods to preserve code coverage.
 
#define GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING    DETAIL_GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
 Microsoft Visual Studio does not automatically export the interface information for member variables that belong to interface classes of a DLL. Instead it issues this warning. When the member variable is private, we choose to suppress the warning instead of needlessly adding the class information to the DLL interface.
 
#define GZ_UTILS_WARN_IGNORE__NON_VIRTUAL_DESTRUCTOR    DETAIL_GZ_UTILS_WARN_IGNORE__NON_VIRTUAL_DESTRUCTOR
 Compilers might warn about deleting a pointer to a class that has virtual functions without a virtual destructor or a final declaration, because the pointer might secretly be pointing to a more derived class type. We want to suppress this warning when we know for certain (via the design of our implementation) that the pointer is definitely not pointing to a more derived type.
 
#define GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION    DETAIL_GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION
 
#define GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING    DETAIL_GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
 
#define GZ_UTILS_WARN_RESUME__NON_VIRTUAL_DESTRUCTOR    DETAIL_GZ_UTILS_WARN_RESUME__NON_VIRTUAL_DESTRUCTOR
 

Macro Definition Documentation

◆ GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION

#define GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION    DETAIL_GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION

Use this to suppress deprecation warnings. This may be useful when retaining tests for deprecated methods to preserve code coverage.

◆ GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING

#define GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING    DETAIL_GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING

Microsoft Visual Studio does not automatically export the interface information for member variables that belong to interface classes of a DLL. Instead it issues this warning. When the member variable is private, we choose to suppress the warning instead of needlessly adding the class information to the DLL interface.

◆ GZ_UTILS_WARN_IGNORE__NON_VIRTUAL_DESTRUCTOR

#define GZ_UTILS_WARN_IGNORE__NON_VIRTUAL_DESTRUCTOR    DETAIL_GZ_UTILS_WARN_IGNORE__NON_VIRTUAL_DESTRUCTOR

Compilers might warn about deleting a pointer to a class that has virtual functions without a virtual destructor or a final declaration, because the pointer might secretly be pointing to a more derived class type. We want to suppress this warning when we know for certain (via the design of our implementation) that the pointer is definitely not pointing to a more derived type.

◆ GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION

#define GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION    DETAIL_GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION

◆ GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING

#define GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING    DETAIL_GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING

◆ GZ_UTILS_WARN_RESUME__NON_VIRTUAL_DESTRUCTOR

#define GZ_UTILS_WARN_RESUME__NON_VIRTUAL_DESTRUCTOR    DETAIL_GZ_UTILS_WARN_RESUME__NON_VIRTUAL_DESTRUCTOR