[previous] 0040 [next] [Q] Definition of size_t differs from configured type.
QAC configuration

size_t is defined by a typedef in the standard library header files <stdio.h>, <stddef.h>, <stdlib.h>, <string.h> and <time.h>.

QA C has an option (-intrinsictype, compiler personality), which allows the type associated with size_t to be configured. Message 0040 is generated if a typedef encountered in the source code is not consistent with this configured type.

The QA C Standard Library header files use an implicit macro, PRQA_SIZE_T, when declaring the type of size_t. This macro is automatically defined in the QA C environment to reflect the configuration option setting. If you are using your own header files to define size_t, you should ensure that QA C is configured to be consistent with this typedef.


No MISRA C:2012 Rules applicable to message 0040


See also:

QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents