diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-08 09:17:38 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-08 09:17:38 +0000 |
commit | 0fda3648f96f5fe9b1b14870d1e51375901fc348 (patch) | |
tree | 8e04fa7b971a51814b88c4ab877e9874076ae456 /os/rt/src/chmemcore.c | |
parent | f0abafaab1bf40ee24cee1670aef6989690b0135 (diff) | |
download | ChibiOS-0fda3648f96f5fe9b1b14870d1e51375901fc348.tar.gz ChibiOS-0fda3648f96f5fe9b1b14870d1e51375901fc348.tar.bz2 ChibiOS-0fda3648f96f5fe9b1b14870d1e51375901fc348.zip |
Reduced MISRA annoyances.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7735 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/src/chmemcore.c')
-rw-r--r-- | os/rt/src/chmemcore.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/os/rt/src/chmemcore.c b/os/rt/src/chmemcore.c index 901fb5828..64f82aa84 100644 --- a/os/rt/src/chmemcore.c +++ b/os/rt/src/chmemcore.c @@ -134,8 +134,7 @@ void *chCoreAllocI(size_t size) { chDbgCheckClassI();
size = MEM_ALIGN_NEXT(size);
- /*lint -save -e9033 -e946 -e947 [10.8, 18.2, 18.3] Normal pointers
- arithmetic, it is safe.*/
+ /*lint -save -e9033 [10.8] The cast is safe.*/
if ((size_t)(endmem - nextmem) < size) {
/*lint -restore*/
return NULL;
@@ -155,8 +154,7 @@ void *chCoreAllocI(size_t size) { */
size_t chCoreGetStatusX(void) {
- /*lint -save -e9033 -e946 -e947 [10.8, 18.2, 18.3] Normal pointers
- arithmetic, it is safe.*/
+ /*lint -save -e9033 [10.8] The cast is safe.*/
return (size_t)(endmem - nextmem);
/*lint -restore*/
}
|