aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/oslib/include
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-02-06 18:15:51 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-02-06 18:15:51 +0000
commita947a1d5ae074f341716d2478922a6d23208bb77 (patch)
treecb9faa577d78fcd6135248e9226c42382e974118 /os/common/oslib/include
parent069482ac06372bd9e184f6281399ae4731af375d (diff)
downloadChibiOS-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/include')
-rw-r--r--os/common/oslib/include/chfactory.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/os/common/oslib/include/chfactory.h b/os/common/oslib/include/chfactory.h
index ec2bd4c3e..a2f27c626 100644
--- a/os/common/oslib/include/chfactory.h
+++ b/os/common/oslib/include/chfactory.h
@@ -111,11 +111,11 @@
#error "CH_CFG_USE_FACTORY requires CH_CFG_USE_MEMCORE"
#endif
-#if (CH_FACTORY_REQUIRES_POOLS == TRUE) && (CH_CFG_USE_MEMPOOLS == FALSE)
+#if CH_FACTORY_REQUIRES_POOLS && (CH_CFG_USE_MEMPOOLS == FALSE)
#error "CH_CFG_USE_MEMPOOLS is required"
#endif
-#if (CH_FACTORY_REQUIRES_HEAP == TRUE) && (CH_CFG_USE_HEAP == FALSE)
+#if CH_FACTORY_REQUIRES_HEAP && (CH_CFG_USE_HEAP == FALSE)
#error "CH_CFG_USE_HEAP is required"
#endif
@@ -187,11 +187,13 @@ typedef struct ch_dyn_object {
* @brief List element of the dynamic buffer object.
*/
dyn_element_t element;
+ /*lint -save -e9038 [18.7] Required by design.*/
/**
* @brief The buffer.
* @note This requires C99.
*/
uint8_t buffer[];
+ /*lint restore*/
} dyn_buffer_t;
#endif
@@ -224,11 +226,13 @@ typedef struct ch_dyn_mailbox {
* @brief The mailbox.
*/
mailbox_t mbx;
- /**
+ /*lint -save -e9038 [18.7] Required by design.*/
+ /**
* @brief Messages buffer.
* @note This requires C99.
*/
msg_t msgbuf[];
+ /*lint restore*/
} dyn_mailbox_t;
#endif
@@ -245,6 +249,7 @@ typedef struct ch_dyn_objects_fifo {
* @brief The objects FIFO.
*/
objects_fifo_t fifo;
+ /*lint -save -e9038 [18.7] Required by design.*/
/**
* @brief Messages buffer.
* @note This open array is followed by another area containing the
@@ -252,6 +257,7 @@ typedef struct ch_dyn_objects_fifo {
* @note This requires C99.
*/
msg_t msgbuf[];
+ /*lint restore*/
} dyn_objects_fifo_t;
#endif