From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5c84e88bf28b7849,start X-Google-Attributes: gidfee84,public From: David Hinz <7587678@mcimail.com> Subject: Lint on osf1 Date: 1995/07/12 Message-ID: <3u0vu6$510@hermes.dna.mci.com> X-Deja-AN: 106180193 content-type: text/plain; charset=us-ascii organization: MCI x-url: news:comp.unix.osf.osf1 mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 1.1N (X11; I; OSF1 V3.2 alpha) When using lint on DEC OSF/1 how do you handle all of the errors/warnings generated from the standard include files? The code compiles correctly, but lint thinks there are major problems with the include files. Are the standard include files not ANSI compatible??!!?? I doubt that. Any clues on better ways to use lint? Below is the output from lint on one of my C files. Thanks, David Hinz. lint -MA -I./inc ./src/tester.c "siginfo.h", line 66 ("parser.c"): error: syntax error "siginfo.h", line 66 ("parser.c"): error: structure members must be terminated by ';' "siginfo.h", line 71 ("parser.c"): error: zero sized structure "siginfo.h", line 93 ("parser.c"): error: syntax error "siginfo.h", line 93 ("parser.c"): error: structure members must be terminated by ';' "siginfo.h", line 94 ("parser.c"): error: zero sized structure "siginfo.h", line 112 ("parser.c"): error: syntax error "siginfo.h", line 112 ("parser.c"): error: declaration must have explicit type specifiers "siginfo.h", line 113 ("parser.c"): error: declaration must have explicit type specifiers "signal.h", line 154 ("parser.c"): error: syntax error "signal.h", line 154 ("parser.c"): error: structure members must be terminated by ';' "signal.h", line 161 ("parser.c"): error: basic type cannot mix with struct/union/enum/typedef "signal.h", line 288 ("parser.c"): error: syntax error "signal.h", line 301 ("parser.c"): error: declaration is missing declarator "signal.h", line 312 ("parser.c"): warning: old style argument declaration "signal.h", line 312 ("parser.c"): error: syntax error "signal.h", line 312 ("parser.c"): error: arg list in declaration "signal.h", line 381 ("parser.c"): error: declaration is missing declarator "signal.h", line 387 ("parser.c"): error: syntax error "signal.h", line 387 ("parser.c"): error: structure members must be terminated by ';' "signal.h", line 390 ("parser.c"): error: zero sized structure "procset.h", line 89 ("parser.c"): error: syntax error "procset.h", line 89 ("parser.c"): error: structure members must be terminated by ';' "procset.h", line 93 ("parser.c"): error: illegal type specifier combination "signal.h", line 497 ("parser.c"): error: syntax error "signal.h", line 499 ("parser.c"): error: illegal class "signal.h", line 500 ("parser.c"): error: illegal class "timers.h", line 118 ("parser.c"): error: declaration is missing declarator "timers.h", line 188 ("parser.c"): error: illegal class "timers.h", line 189 ("parser.c"): error: illegal class "timers.h", line 190 ("parser.c"): error: illegal class "timers.h", line 191 ("parser.c"): error: illegal class "timers.h", line 196 ("parser.c"): error: syntax error "timers.h", line 196 ("parser.c"): error: illegal class "timers.h", line 196 ("parser.c"): warning: timer_created undefined "timers.h", line 196 ("parser.c"): warning: timer_t undefined "timers.h", line 198 ("parser.c"): warning: old style argument declaration "timers.h", line 198 ("parser.c"): error: syntax error "timers.h", line 198 ("parser.c"): error: illegal class "timers.h", line 198 ("parser.c"): warning: timerid undefined "timers.h", line 198 ("parser.c"): error: arg list in declaration "timers.h", line 199 ("parser.c"): warning: old style argument declaration "timers.h", line 199 ("parser.c"): error: syntax error "timers.h", line 199 ("parser.c"): error: illegal class "timers.h", line 199 ("parser.c"): warning: value undefined "timers.h", line 199 ("parser.c"): warning: timerid undefined "timers.h", line 199 ("parser.c"): error: arg list in declaration "timers.h", line 200 ("parser.c"): warning: old style argument declaration "timers.h", line 200 ("parser.c"): error: syntax error "timers.h", line 201 ("parser.c"): error: illegal class "timers.h", line 201 ("parser.c"): warning: ovalue undefined "timers.h", line 201 ("parser.c"): warning: flags undefined "timers.h", line 201 ("parser.c"): warning: value undefined "timers.h", line 201 ("parser.c"): warning: timerid undefined "timers.h", line 201 ("parser.c"): error: arg list in declaration "timers.h", line 202 ("parser.c"): warning: old style argument declaration "timers.h", line 202 ("parser.c"): error: syntax error "timers.h", line 202 ("parser.c"): error: illegal class "timers.h", line 202 ("parser.c"): warning: timerid undefined "timers.h", line 202 ("parser.c"): error: arg list in declaration "timers.h", line 203 ("parser.c"): error: illegal class "timers.h", line 214 ("parser.c"): error: illegal class "sched.h", line 69 ("parser.c"): error: declaration is missing declarator "sched.h", line 115 ("parser.c"): warning: old style argument declaration "sched.h", line 115 ("parser.c"): error: syntax error "sched.h", line 115 ("parser.c"): error: illegal class "sched.h", line 115 ("parser.c"): warning: pid undefined "sched.h", line 115 ("parser.c"): warning: param undefined "sched.h", line 115 ("parser.c"): error: arg list in declaration "sched.h", line 116 ("parser.c"): warning: old style argument declaration "sched.h", line 116 ("parser.c"): error: syntax error "sched.h", line 116 ("parser.c"): error: illegal class "sched.h", line 116 ("parser.c"): warning: pid undefined "sched.h", line 116 ("parser.c"): warning: param undefined "sched.h", line 116 ("parser.c"): error: arg list in declaration "sched.h", line 117 ("parser.c"): warning: old style argument declaration "sched.h", line 117 ("parser.c"): error: syntax error "sched.h", line 117 ("parser.c"): error: illegal class "sched.h", line 117 ("parser.c"): warning: pid undefined "sched.h", line 117 ("parser.c"): warning: policy undefined "sched.h", line 117 ("parser.c"): warning: param undefined "sched.h", line 117 ("parser.c"): error: arg list in declaration "sched.h", line 118 ("parser.c"): warning: old style argument declaration "sched.h", line 118 ("parser.c"): error: syntax error "/usr/include/sched.h", line 118: lint error: too many errors *** Exit 2