소스 검색

Revert "[kernel] Add __attribute__(...) for rt_kprintf() to let the compiler check the format string parameters"

This reverts commit d2e6715ddbc03f5e6d0bb3f44e5eb73135a5b258.
Bernard Xiong 3 년 전
부모
커밋
634a06c3cb
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      include/rtthread.h

+ 0 - 5
include/rtthread.h

@@ -570,12 +570,7 @@ void rt_components_board_init(void);
 #define rt_kprintf(...)
 #define rt_kputs(str)
 #else
-#if defined(__ARMCC_VERSION) || defined(__GNUC__) || \
-    defined(__TI_COMPILER_VERSION__)
-int rt_kprintf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
-#else
 int rt_kprintf(const char *fmt, ...);
-#endif
 void rt_kputs(const char *str);
 #endif