This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In M1, no warnings about unusable code, etc., are shown. It is a regression: it works in 200806230002. In the code fragment below, unreachable code warning must be show in the function f(), unusable code in the function g(). <?php /** * PHP Template. */ function f(){ return 1; $a=2; } function g(){ $aa=2; $aa=3; } ?>
These warnings were disabled on purpose for the M1 cos the rate of false alarms was unacceptable. I wrote an email about it to the dev list. I am switching them back on now and I will start to work on improving their accuracy. Please note that in the future we will have a UI for switching them on and off and they may be disabled by default. PS. I am marking this issue INVALID to make sure the commit is not back-ported to M1 Commit log: http://hg.netbeans.org/main/rev/7c6987b1876f
Oops. Sorry for missing that and thanks for the explanation.
Integrated into 'main-golden', available in NB_Trunk_Production #285 build Changeset: http://hg.netbeans.org/main/rev/7c6987b1876f User: Tomasz Slota <tslota@netbeans.org> Log: #138377: re-enabling the unused- and uninitialized- variable hints