From 5a8f647d1557395a20c01db8b5f6704a1cf38c61 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 22 Aug 2017 15:15:19 +0000 Subject: [PATCH] Fixed bug #864. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10459 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chevents.h | 2 +- readme.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/os/rt/include/chevents.h b/os/rt/include/chevents.h index b306dc8af..bb368e96b 100644 --- a/os/rt/include/chevents.h +++ b/os/rt/include/chevents.h @@ -102,7 +102,7 @@ typedef void (*evhandler_t)(eventid_t id); * source that is part of a bigger structure. * @param name the name of the event source variable */ -#define _EVENTSOURCE_DATA(name) {(void *)(&name)} +#define _EVENTSOURCE_DATA(name) {(event_listener_t *)(&name)} /** * @brief Static event source initializer. diff --git a/readme.txt b/readme.txt index f34d5b2a6..b596b054f 100644 --- a/readme.txt +++ b/readme.txt @@ -111,6 +111,8 @@ 17.6.1 and 16.1.9). - RT: Fixed misplaced assertion in semaphores code (bug #865)(backported to 17.6.1 and 16.1.9). +- RT: Fixed event cast cleanup for compilation warnings (bug #864)(backported + to 17.6.1 and 16.1.9). - HAL: Fixed STM32 USBv1 fails the state check when USB_USE_WAIT is TRUE (bug #863)(backported to 17.6.1 and 16.1.9). - HAL: Fixed incorrect OTG stepping in STM32F412 registry (bug #861)