Skip to content

Commit 7bbf260

Browse files
authored
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"
2 parents ead2464 + 634a06c commit 7bbf260

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

include/rtthread.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -570,12 +570,7 @@ void rt_components_board_init(void);
570570
#define rt_kprintf(...)
571571
#define rt_kputs(str)
572572
#else
573-
#if defined(__ARMCC_VERSION) || defined(__GNUC__) || \
574-
defined(__ICCARM__) || defined(__TI_COMPILER_VERSION__)
575-
int rt_kprintf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
576-
#else
577573
int rt_kprintf(const char *fmt, ...);
578-
#endif
579574
void rt_kputs(const char *str);
580575
#endif
581576

0 commit comments

Comments
 (0)