Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!paul.rutgers.edu!birnbaum From: birnbaum@paul.rutgers.edu (Rich Birnbaum) Newsgroups: comp.unix.questions Subject: lint: shouldn't it catch this? Keywords: used before set Message-ID: Date: 2 Jan 91 17:52:09 GMT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 19 Running lint on this program produces no errors: main() { int i; if (0) i=0; printf ("%d",i); } Shouldn't it complain that 'i' may be used before set? I could have sworn it did at some point in my life! This is a VERY pared down version of a bigger program. I tried this on a Sun, a Gould, and a Pyramid. Maybe lint isn't as smart as I thought... Please email responses to birnbaum@pica.army.mil.