lclint-interest message 201

From 100566.1506@csi.com Mon Mar  2 11:10:16 1998
X-Authentication-Warning: opto4l.default.com: 100566.1506 owned process doing -bs
Date: Mon, 2 Mar 1998 10:28:07 +0100 (CET)
From: Hermann Kleier <100566.1506@csi.com>
X-Sender: 100566.1506@opto4l.default.com
Reply-To: Hermann Kleier <100566.1506@csi.com>
To: David Evans 
Cc: lclint-interest@larch.lcs.mit.edu, HermannK@compuserve.com, weco@csi.com
Subject: Re: signal function interface
In-Reply-To: <9802271911.AA28409@larch.lcs.mit.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Dave,

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.

Hermann





Previous Message Next Message Archive Summary LCLint Home Page David Evans
University of Virginia, Computer Science
evans@cs.virginia.edu