> -----Original Message----- > From: Interest [mailto:interest-boun...@qt-project.org] On Behalf Of > Edward Sutton > Sent: Monday, December 14, 2015 10:45 PM > To: Qt Interest <interest@qt-project.org> > Subject: [Interest] How prevent "Code will never be executed" when > compiling "qDebug() << enumvar" ? > > #ifdef QT_DEBUG // Fix iOS Clang warning "Code will never be executed" > > qDebug() << "TapAndHoldGesture: " << tapAndHold->state(); > > #endif
Just an idea, but maybe you can try using categorized logging? QLoggingCategory defaultC("default"); qCDebug(defaultC) << "TapAndHoldGesture: " << tapAndHold->state(); Regards Kai _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest