clean up compiler attribute

This commit is contained in:
hathach
2018-12-14 13:08:21 +07:00
parent edf885ca46
commit a3713f801d
15 changed files with 49 additions and 115 deletions

View File

@@ -132,7 +132,6 @@ DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff)
return RES_OK;
}
static inline uint8_t month2number(char* p_ch) ATTR_PURE ATTR_ALWAYS_INLINE;
static inline uint8_t month2number(char* p_ch)
{
char const * const month_str[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
@@ -145,7 +144,6 @@ static inline uint8_t month2number(char* p_ch)
return 1;
}
static inline uint8_t c2i(char ch) ATTR_CONST ATTR_ALWAYS_INLINE;
static inline uint8_t c2i(char ch)
{
return ch - '0';