[Interest] How prevent "Code will never be executed" when compiling "qDebug() << enumvar" ?
Thiago Macieira
thiago.macieira at intel.com
Wed Dec 16 00:02:12 CET 2015
On Tuesday 15 December 2015 13:31:40 Edward Sutton wrote:
> >We have not seen this warning. What version of Xcode is this warning
> >showing
> up on?
>
> Xcode 7.2.
I don't know what any of those switches do, so I will answer in the generic:
1) if the warning is emitted by -Wall -Wextra, we'll do our best to fix it,
including reporting bugs to the compiler and working around if it is a false
positive.
2) if it's not produced at -Wextra level, it's up to our discretion whether to
fix it. We may consider it "warning too stupid" and say you shouldn't turn it
on.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list