[Interest] How prevent "Code will never be executed" when compiling "qDebug() << enumvar" ?

Thiago Macieira thiago.macieira at intel.com
Tue Dec 15 10:31:58 CET 2015


On Monday 14 December 2015 21:44:47 Edward Sutton wrote:
> #ifdef QT_DEBUG // Fix iOS Clang warning "Code will never be executed"
> 
> qDebug() << "TapAndHoldGesture: " << tapAndHold->state();
> 
> #endif

We have not seen this warning. What version of Xcode is this warning showing 
up on?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list