por
pobrecito hablador
el Lunes, 24 Febrero de 2014, 18:48h
(#1355737)
Si te hubieras leido el enlace, verias que se comenta que ni gcc ni clang dan warning.
If I compile with -Wall (enable all warnings), neither GCC 4.8.2 or Clang 3.3 from Xcode make a peep about the dead code. That's surprising to me. A better warning could have stopped this but perhaps the false positive rate is too high over real codebases? (Thanks to Peter Nelson for pointing out the Clang does have -Wunreachable-code to warn about this, but it's not in -Wall.)
Re:copy & paste
(Puntos:2, Informativo)