Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.11
-
None
-
-
097bf6fdd234ca7e5707610edfd3c804b3ba2a52 (qt/qtbase/5.12) 0f3ff1823c4bf1fc12280a677b871f381c77d0fb (qt/qtwayland/dev)
Description
When I define DEFINES += QT_NO_INFO_OUTPUT QT_NO_WARNING_OUTPUT QT_NO_DEBUG_OUTPUT in pro.
qwaylandshmbackingstore.cpp:402:134: error: macro "qCDebug" passed 2 arguments, but takes just 1
qCDebug(lcWaylandBackingstore, "QWaylandShmBackingStore: stalling waiting for a buffer to be released from the compositor...");
Maybe:
#if defined(QT_NO_DEBUG_OUTPUT)
- undef qCDebug
- define qCDebug(category) QT_NO_QDEBUG_MACRO()
#endif
#if defined(QT_NO_INFO_OUTPUT) - undef qCInfo
- define qCInfo(category) QT_NO_QDEBUG_MACRO()
#endif
#if defined(QT_NO_WARNING_OUTPUT) - undef qCWarning
- define qCWarning(category) QT_NO_QDEBUG_MACRO()
#endif
Should be:
#if defined(QT_NO_DEBUG_OUTPUT) - undef qCDebug
- define qCDebug(category, ...) QT_NO_QDEBUG_MACRO()
#endif
#if defined(QT_NO_INFO_OUTPUT) - undef qCInfo
- define qCInfo(category, ...) QT_NO_QDEBUG_MACRO()
#endif
#if defined(QT_NO_WARNING_OUTPUT) - undef qCWarning
- define qCWarning(category, ...) QT_NO_QDEBUG_MACRO()
#endif
This code in: qt5/qtbase/src/corelib/io/qloggingcategory.h