Merge pull request #5453 from RT-Thread/revert-5432-master

Revert "[kernel] Add __attribute__(...) for rt_kprintf() to let the compiler check the format string parameters"
This commit is contained in:
guo 2021-12-30 16:37:37 +08:00 committed by GitHub
commit 7bbf2605b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -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(__ICCARM__) || 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