Renesas Technology, Tools FAQs
Last Updated: June 7, 2004
Document Number: 04051001_e
Q.
When I describe an enum type parameter for the prototype declaration and use an enumerator-type argument for the function call, I
get the following report messages regardless of using the same type.
Why does SQMlint output these messages?
C source example:
----------------------
enum E { A, B, C };
void func1(enum E);
void func2()
{
func1(A);
}
----------------------
Message output:
Rule 77 (Complaining) "argument type shall be compatible with prototype,
the 1st argument"
A.
The enumerator type is int type.
As SQMlint compares the parameter with the corresponding argument strictly, it recognizes "enum E" type and "int" type
differently, and therefore outputs the above messages.
In this case, please ignore the report messages.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Comentarios a estos manuales