run ci with -DCMAKE_BUILD_TYPE=MinSizeRel
This commit is contained in:
@@ -143,9 +143,19 @@ void board_init(void)
|
||||
GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS;
|
||||
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||
|
||||
// Suppress warning caused by mcu driver
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wshadow"
|
||||
#endif
|
||||
|
||||
/* Enable USB FS Clocks */
|
||||
__HAL_RCC_USB_OTG_FS_CLK_ENABLE();
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#if OTG_FS_VBUS_SENSE
|
||||
/* Configure VBUS Pin */
|
||||
GPIO_InitStruct.Pin = GPIO_PIN_9;
|
||||
|
@@ -33,7 +33,7 @@ CFLAGS_GCC += \
|
||||
-nostdlib -nostartfiles
|
||||
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS_GCC += -Wno-error=shadow -Wno-error=cast-align
|
||||
CFLAGS_GCC += -Wno-error=cast-align
|
||||
|
||||
# -----------------
|
||||
# Sources & Include
|
||||
|
Reference in New Issue
Block a user