Qt Utilities 6.19.0
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Loading...
Searching...
No Matches
disablewarningsmoc.h File Reference

Macro to disable warnings that sources generated by moc might generate. More...

#include <QtGlobal>
Include dependency graph for disablewarningsmoc.h:

Go to the source code of this file.

Macros

#define QT_UTILITIES_DISABLE_WARNINGS_FOR_MOC_INCLUDE
#define QT_UTILITIES_RESTORE_WARNINGS_FOR_MOC_INCLUDE   QT_WARNING_POP

Detailed Description

Macro to disable warnings that sources generated by moc might generate.

Remarks
These warnings are also worked around by disabling them for mocs_compilation.cpp files via set_source_files_properties on CMake-level. The set of warnings should be kept in-sync between the CMake-level workaround and this macro.

Definition in file disablewarningsmoc.h.

Macro Definition Documentation

◆ QT_UTILITIES_DISABLE_WARNINGS_FOR_MOC_INCLUDE

#define QT_UTILITIES_DISABLE_WARNINGS_FOR_MOC_INCLUDE
Value:
QT_WARNING_PUSH \
QT_WARNING_DISABLE_GCC("-Wsign-conversion") \
QT_WARNING_DISABLE_CLANG("-Wsign-conversion")

Definition at line 14 of file disablewarningsmoc.h.

◆ QT_UTILITIES_RESTORE_WARNINGS_FOR_MOC_INCLUDE

#define QT_UTILITIES_RESTORE_WARNINGS_FOR_MOC_INCLUDE   QT_WARNING_POP

Definition at line 18 of file disablewarningsmoc.h.