Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!utah-cs!utah-gr!thomas From: thomas@utah-gr.UUCP (Spencer W. Thomas) Newsgroups: net.bugs.4bsd Subject: Re: Looking for fixes to bugs in 4.1bsd lint Message-ID: <974@utah-gr.UUCP> Date: Sat, 5-Nov-83 16:58:38 EST Article-I.D.: utah-gr.974 Posted: Sat Nov 5 16:58:38 1983 Date-Received: Tue, 8-Nov-83 01:36:41 EST References: syteka.393 Lines: 18 Lint properly complains about uncasted NULL pointers in function calls - on some machines (e.g., many 68000 C compilers), ints and pointers are NOT THE SAME SIZE. Thus, a 0 pointer is not the same as a 0 integer, and must be cast in a function call. Note that this is the only place where the compiler will not properly coerce the 0, as it has no knowledge of the receiving argument. There is a known bug in the pre-processor involving #if lines with comments on them (that only shows up when running lint). The solution seems to be to not put comments on #ifs. Lint should never see #ifdef lines, they should be stripped by the preprocessor. If, for some reason, the preprocessor lets one through, it will be for sure diagnosed as a syntax error. Check out your preprocessor, remembering that lint supplies the -C flag to the preprocessor (leave comments in). =Spencer