devchk ideas

ShrikantGangoda <[email protected]> Thu, 27 Oct 2005 18:30:52 +0530
Newsgroups gmane.linux.lsb.test-suite
Organization Codito Technologies Pvt. Ltd.
Message-ID <[email protected]>
Hi Rajesh,
	I am working on devchk with pradosh.

On Tue, 2005-10-25 at 11:24 +0530, Pradosh Adoni wrote:
> -------- Forwarded Message --------
> >
> > Date: Mon, 24 Oct 2005 09:40:48 -0700
> > 
> > Hi Pradosh,
> > 	There is no transcript as such; it was just one liner from Nick.
> > 
> > The idea is to use gcc extension to C: typeof. Declare two variables,
> > one with typeof (&function_name), and the other using the prototype info
> > from DB. If you can assign one variable to the other without warning,
> > they have the same type.
> >
I have implemented the idea to check  two functions.But,this idea can
not be used in checking macros as types are not define.
Example: #define ABC(a,b)  (a+b)
here we don't have information on types of 'a' and 'b'.

>  
> > Hope this helps. This will be compile time check and we will have to
> > monitor warnings, may be there is a flag to gcc which can consider
> > warnings as errors.
> > 


- Shrikant