Roland Mainz writes:
> Keith M Wesolowski wrote:
> > On Sat, Mar 15, 2008 at 04:47:25PM +0100, Roland Mainz wrote:
> > > Does anyone know tools to track down problems caused by uninitalised
> > > global or stack variables except dbx's "check -access" functionality
> > > (which doesn't work in B84) which work in Solaris 11 ?
> > 
> > gcc -Wuninitialized and lint in "enhanced mode" both do this today.
> 
> "gcc" doesn't show any problems...
> ... how cam I enable "lint"'s enhanched mode ? The normal "lint" pass in
> OS/Net doesn't show any problems in the related code segments...

You need to get lint's flow tracing engaged.  I usually use
"-Nlevel=2" to do this, but beware that you'll get way more output
than you might want.  (On the plus side, that mode identifies unused
include files, so it's a good thing to do even if you ignore much of
the output.)

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to