Fix werror flag and warnings (#321)
* fix Werror flag * strdup implementation fix * fix irda and lfrdid printf * remove unused position * doubtful type fix * type fix in EXTI interrupt * fix warnings in CubeWB, need to fork ST repo * onewire fixes * fork STM32WB Cube repo
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
|
||||
PROJECT = firmware
|
||||
|
||||
CFLAGS += -Werror
|
||||
CPPFLAGS += -Werror
|
||||
|
||||
include $(PROJECT_ROOT)/make/base.mk
|
||||
include $(PROJECT_ROOT)/assets/assets.mk
|
||||
include $(PROJECT_ROOT)/core/core.mk
|
||||
@@ -11,6 +8,9 @@ include $(PROJECT_ROOT)/make/git.mk
|
||||
include $(PROJECT_ROOT)/applications/applications.mk
|
||||
include $(PROJECT_ROOT)/lib/lib.mk
|
||||
|
||||
CFLAGS += -Werror
|
||||
CPPFLAGS += -Werror
|
||||
|
||||
TARGET ?= f4
|
||||
|
||||
TARGET_DIR = targets/$(TARGET)
|
||||
|
@@ -32,5 +32,5 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef* htim) {
|
||||
|
||||
/* External interrupt event */
|
||||
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
|
||||
api_interrupt_call(InterruptTypeExternalInterrupt, GPIO_Pin);
|
||||
api_interrupt_call(InterruptTypeExternalInterrupt, (void*)(uint32_t)GPIO_Pin);
|
||||
}
|
Reference in New Issue
Block a user