From 9e59e8e38e606036ea6e3a96539accb03a792645 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Wed, 18 Sep 2019 09:07:52 +0200 Subject: [PATCH] [ion] Homogenize type definitions to avoid LTO warnings --- ion/src/device/n0110/drivers/board.cpp | 3 ++- ion/src/device/shared/usb/dfu_relocated.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ion/src/device/n0110/drivers/board.cpp b/ion/src/device/n0110/drivers/board.cpp index c166582bd..9a6940d56 100644 --- a/ion/src/device/n0110/drivers/board.cpp +++ b/ion/src/device/n0110/drivers/board.cpp @@ -5,7 +5,8 @@ #include #include -extern void * InitialisationVector; +typedef void(*ISR)(void); +extern ISR InitialisationVector[]; // Public Ion methods diff --git a/ion/src/device/shared/usb/dfu_relocated.cpp b/ion/src/device/shared/usb/dfu_relocated.cpp index f39a1313f..470ba2615 100644 --- a/ion/src/device/shared/usb/dfu_relocated.cpp +++ b/ion/src/device/shared/usb/dfu_relocated.cpp @@ -4,7 +4,7 @@ #include #include "../drivers/timing.h" -extern char _stack_end; +extern const void * _stack_end; extern char _dfu_bootloader_flash_start; extern char _dfu_bootloader_flash_end;