> -----Original Message-----
> From: Interest [mailto:[email protected]] On Behalf Of
> Edward Sutton
> Sent: Monday, December 14, 2015 10:45 PM
> To: Qt Interest <[email protected]>
> 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
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest