diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-02-06 18:15:51 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-02-06 18:15:51 +0000 |
commit | a947a1d5ae074f341716d2478922a6d23208bb77 (patch) | |
tree | cb9faa577d78fcd6135248e9226c42382e974118 /os/common/oslib/src/chheap.c | |
parent | 069482ac06372bd9e184f6281399ae4731af375d (diff) | |
download | ChibiOS-a947a1d5ae074f341716d2478922a6d23208bb77.tar.gz ChibiOS-a947a1d5ae074f341716d2478922a6d23208bb77.tar.bz2 ChibiOS-a947a1d5ae074f341716d2478922a6d23208bb77.zip |
MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11455 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/oslib/src/chheap.c')
-rw-r--r-- | os/common/oslib/src/chheap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os/common/oslib/src/chheap.c b/os/common/oslib/src/chheap.c index d6e2eeca6..d3d25458f 100644 --- a/os/common/oslib/src/chheap.c +++ b/os/common/oslib/src/chheap.c @@ -135,7 +135,9 @@ void chHeapObjectInit(memory_heap_t *heapp, void *buf, size_t size) { /* Adjusting the size in case the initial block was not correctly
aligned.*/
+ /*lint -save -e9033 [10.8] Required cast operations.*/
size -= (size_t)((uint8_t *)hp - (uint8_t *)buf);
+ /*lint restore*/
/* Initializing the heap header.*/
heapp->provider = NULL;
|