This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MISRA-C:2004 规则检查错误,但实际代码并未发现违反规则

头文件代码如下:

#ifndef _STDTYPE_H_
#define _STDTYPE_H_
/* 整数类型 */
typedef signed char int8;
typedef unsigned char uint8;
typedef short  int16;
typedef unsigned short uint16;
typedef int int32;
typedef unsigned int uint32;
#endif

编译时检查MISRA-C:2004规则

报如下错误:
#1504-D (MISRA-C:2004 19.15/R) Precautions shall be taken in order to prevent the contents of a header file being included twice

注:所用芯片:RM42L432PZ

CCS版本 V5.3.0