Skip to content

Commit 7089535

Browse files
committed
clean up f0 warnings
1 parent 9a8a935 commit 7089535

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hw/bsp/stm32f0/family.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void HardFault_Handler (void)
165165
* @param line: assert_param error line source number
166166
* @retval None
167167
*/
168-
void assert_failed(uint8_t* file, uint32_t line)
168+
void assert_failed(const char* file, uint32_t line)
169169
{
170170
(void) file; (void) line;
171171
/* USER CODE BEGIN 6 */

hw/bsp/stm32f0/family.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GCC_CFLAGS += \
2424
-nostdlib -nostartfiles \
2525

2626
# suppress warning caused by vendor mcu driver
27-
GCC_CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align -Wno-error=cast-qual
27+
GCC_CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align
2828

2929
# IAR Flags
3030
IAR_CFLAGS += --cpu cortex-m0

hw/bsp/stm32f0/stm32f0xx_hal_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@
303303
* If expr is true, it returns no value.
304304
* @retval None
305305
*/
306-
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
306+
#define assert_param(expr) ((expr) ? (void)0U : assert_failed(__FILE__, __LINE__))
307307
/* Exported functions ------------------------------------------------------- */
308-
void assert_failed(uint8_t* file, uint32_t line);
308+
void assert_failed(const char* file, uint32_t line);
309309
#else
310310
#define assert_param(expr) ((void)0U)
311311
#endif /* USE_FULL_ASSERT */

0 commit comments

Comments
 (0)