Renesas TM V.3.20A Specifikace Strana 223

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 762
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 222
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.
Zobrazit stránku 222
1 2 ... 218 219 220 221 222 223 224 225 226 227 228 ... 761 762

Komentáře k této Příručce

Žádné komentáře