mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-16 06:40:11 +00:00
clean up f0 warnings
This commit is contained in:
parent
9a8a9359e4
commit
7089535848
@ -165,7 +165,7 @@ void HardFault_Handler (void)
|
||||
* @param line: assert_param error line source number
|
||||
* @retval None
|
||||
*/
|
||||
void assert_failed(uint8_t* file, uint32_t line)
|
||||
void assert_failed(const char* file, uint32_t line)
|
||||
{
|
||||
(void) file; (void) line;
|
||||
/* USER CODE BEGIN 6 */
|
||||
|
@ -24,7 +24,7 @@ GCC_CFLAGS += \
|
||||
-nostdlib -nostartfiles \
|
||||
|
||||
# suppress warning caused by vendor mcu driver
|
||||
GCC_CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align -Wno-error=cast-qual
|
||||
GCC_CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align
|
||||
|
||||
# IAR Flags
|
||||
IAR_CFLAGS += --cpu cortex-m0
|
||||
|
@ -303,9 +303,9 @@
|
||||
* If expr is true, it returns no value.
|
||||
* @retval None
|
||||
*/
|
||||
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
|
||||
#define assert_param(expr) ((expr) ? (void)0U : assert_failed(__FILE__, __LINE__))
|
||||
/* Exported functions ------------------------------------------------------- */
|
||||
void assert_failed(uint8_t* file, uint32_t line);
|
||||
void assert_failed(const char* file, uint32_t line);
|
||||
#else
|
||||
#define assert_param(expr) ((void)0U)
|
||||
#endif /* USE_FULL_ASSERT */
|
||||
|
Loading…
x
Reference in New Issue
Block a user