Renesas TM V.3.20A Especificaciones Pagina 62

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 64
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 61
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.
Vista de pagina 61
1 2 ... 57 58 59 60 61 62 63 64

Comentarios a estos manuales

Sin comentarios