lclint-interest message 201

From Mon Mar  2 11:10:16 1998
X-Authentication-Warning: 100566.1506 owned process doing -bs
Date: Mon, 2 Mar 1998 10:28:07 +0100 (CET)
From: Hermann Kleier <>
Reply-To: Hermann Kleier <>
To: David Evans 
Subject: Re: signal function interface
In-Reply-To: <>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Fri, 27 Feb 1998, David Evans wrote:

> Thanks for the explanation.  I'll make sure the next release of lclint
> handles this correctly.

If you are going to rework the stuff I would like you to include messages like
those in the examples below. Of course, like all the others, these messages
should be selectively turned on/off.  I feel that using the implicit casts is a 
traditional (sloppy, confusing, ...) programming style, which I want to avoid in
my programs.  Warnings should be given for the following lines (I refer to the
example of my last E-mail):

 sayptr = say;            // Implicit conversion of `function' to `function ptr'

 sayptr ("sayptr\n");     // Implicit conversion of `function ptr' to `function'
                          // due to function invocation

 (*say) ("(*say)\n");     // Implicit conversion of `function' to `function ptr'
                          // due to unary operator

Especially the last example is confusing for the average non-guru.


Previous Message Next Message Archive Summary LCLint Home Page David Evans
University of Virginia, Computer Science