git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14653 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2021-08-15 18:22:57 +00:00
parent 9fdafd19bf
commit 94e1124a44
10 changed files with 18 additions and 18 deletions

View File

@ -136,7 +136,7 @@ ASMXSRC = $(ALLXASMSRC)
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
# Define C warning options here.
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
# Define C++ warning options here.
CPPWARN = -Wall -Wextra -Wundef

View File

@ -136,7 +136,7 @@ ASMXSRC = $(ALLXASMSRC)
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
# Define C warning options here.
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
# Define C++ warning options here.
CPPWARN = -Wall -Wextra -Wundef

View File

@ -137,7 +137,7 @@ ASMXSRC = $(ALLXASMSRC)
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
# Define C warning options here.
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
# Define C++ warning options here.
CPPWARN = -Wall -Wextra -Wundef

View File

@ -136,7 +136,7 @@ ASMXSRC = $(ALLXASMSRC)
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
# Define C warning options here.
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
# Define C++ warning options here.
CPPWARN = -Wall -Wextra -Wundef

View File

@ -329,8 +329,8 @@ struct port_context {
* by an @p port_intctx structure.
*/
#define PORT_SETUP_CONTEXT(tp, wbase, wtop, pf, arg) do { \
(tp)->ctx.sp = (struct port_intctx *)((uint8_t *)(wtop) - \
sizeof (struct port_intctx)); \
(tp)->ctx.sp = (struct port_intctx *)(void *) \
((uint8_t *)(wtop) - sizeof (struct port_intctx)); \
(tp)->ctx.sp->r4 = (uint32_t)(pf); \
(tp)->ctx.sp->r5 = (uint32_t)(arg); \
(tp)->ctx.sp->lr = (uint32_t)__port_thread_start; \

View File

@ -534,8 +534,8 @@ struct port_context {
*/
#define PORT_SETUP_CONTEXT(tp, wbase, wtop, pf, arg) do { \
PORT_SETUP_CONTEXT_BASEPRI_NS(tp); \
(tp)->ctx.sp = (struct port_intctx *)((uint8_t *)(wtop) - \
sizeof (struct port_intctx)); \
(tp)->ctx.sp = (struct port_intctx *)(void *) \
((uint8_t *)(wtop) - sizeof (struct port_intctx)); \
(tp)->ctx.basepri = CORTEX_BASEPRI_KERNEL; \
(tp)->ctx.r5 = (uint32_t)(arg); \
(tp)->ctx.r4 = (uint32_t)(pf); \

View File

@ -427,8 +427,8 @@ struct port_context {
* by an @p port_intctx structure.
*/
#define PORT_SETUP_CONTEXT(tp, wbase, wtop, pf, arg) do { \
(tp)->ctx.sp = (struct port_intctx *)((uint8_t *)(wtop) - \
sizeof (struct port_intctx)); \
(tp)->ctx.sp = (struct port_intctx *)(void *) \
((uint8_t *)(wtop) - sizeof (struct port_intctx)); \
(tp)->ctx.sp->r4 = (uint32_t)(pf); \
(tp)->ctx.sp->r5 = (uint32_t)(arg); \
(tp)->ctx.sp->lr = (uint32_t)__port_thread_start; \

View File

@ -94,8 +94,8 @@ thread_t *chThdCreateFromHeap(memory_heap_t *heapp, size_t size,
thread_descriptor_t td = THD_DESCRIPTOR(name, wbase, wend, prio, pf, arg);
#if CH_DBG_FILL_THREADS == TRUE
__thd_memfill((uint8_t *)wsp,
(uint8_t *)wsp + size,
__thd_memfill((uint8_t *)wbase,
(uint8_t *)wbase + size,
CH_DBG_STACK_FILL_VALUE);
#endif
@ -152,8 +152,8 @@ thread_t *chThdCreateFromMemoryPool(memory_pool_t *mp, const char *name,
thread_descriptor_t td = THD_DESCRIPTOR(name, wbase, wend, prio, pf, arg);
#if CH_DBG_FILL_THREADS == TRUE
__thd_memfill((uint8_t *)wsp,
(uint8_t *)wsp + mp->object_size,
__thd_memfill((uint8_t *)wbase,
(uint8_t *)wbase + mp->object_size,
CH_DBG_STACK_FILL_VALUE);
#endif

View File

@ -153,10 +153,10 @@ BIN = $(CP) -O binary
COV = gcov
# Define C warning options here
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
# Define C++ warning options here
CPPWARN = -Wall -Wextra -Wundef -Wcast-align=strict
CPPWARN = -Wall -Wextra -Wundef
#
# Compiler settings

View File

@ -153,10 +153,10 @@ BIN = $(CP) -O binary
COV = gcov
# Define C warning options here
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
# Define C++ warning options here
CPPWARN = -Wall -Wextra -Wundef -Wcast-align=strict
CPPWARN = -Wall -Wextra -Wundef
#
# Compiler settings