diff options
| author | guo <[email protected]> | 2021-12-30 16:37:37 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-30 16:37:37 +0800 |
| commit | 7bbf2605b7049301140e39dd615d65265c150102 (patch) | |
| tree | c5f0b6706c2a7da4de81e8e47f5b15282eb08a98 /include/rtthread.h | |
| parent | ead24644f008232f81e0408bfb15e99deff115bb (diff) | |
| parent | 634a06c3cb41d431be8ef6c75cf975c0c5a3cbb9 (diff) | |
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"
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index 1f9d3328c1..d18355c426 100644 --- a/include/rtthread.h +++ b/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(__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 |
