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.
At least for the "Debug" configurations, the build tools should default to "More warnings" which corresponds to "-Wall" for GCC and co. This option is known to prevent various kinds of unintended bugs and would probably be useful even for "Release" configurations.