aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2019-01-26 07:57:35 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2019-01-26 07:57:35 +0000
commit2c757aacd0569a7cf824513ec34e5ed976291597 (patch)
tree7298645184dd4c024b910de9af5e6931c84086b2
parent450cf7a783d56f84330e24a6255c59c48493cbb3 (diff)
downloadChibiOS-2c757aacd0569a7cf824513ec34e5ed976291597.tar.gz
ChibiOS-2c757aacd0569a7cf824513ec34e5ed976291597.tar.bz2
ChibiOS-2c757aacd0569a7cf824513ec34e5ed976291597.zip
MISRA-related fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12585 110e8d01-0319-4d1e-a829-52ad28d1bb01
-rw-r--r--os/nil/include/ch.h2
-rw-r--r--test/hal/testbuild/pclint/gcc-include-path.lnt12
-rw-r--r--test/nil/testbuild/pclint/gcc-include-path.lnt12
-rw-r--r--test/rt/testbuild/pclint/gcc-include-path.lnt12
4 files changed, 19 insertions, 19 deletions
diff --git a/os/nil/include/ch.h b/os/nil/include/ch.h
index 8d44d13d3..b50158260 100644
--- a/os/nil/include/ch.h
+++ b/os/nil/include/ch.h
@@ -1304,7 +1304,7 @@ struct nil_system {
*
* @init
*/
-#define chSemObjectInit(sp, n) ((sp)->cnt = n)
+#define chSemObjectInit(sp, n) ((sp)->cnt = (n))
/**
* @brief Performs a wait operation on a semaphore.
diff --git a/test/hal/testbuild/pclint/gcc-include-path.lnt b/test/hal/testbuild/pclint/gcc-include-path.lnt
index 0e8fd311a..be1d0a6a2 100644
--- a/test/hal/testbuild/pclint/gcc-include-path.lnt
+++ b/test/hal/testbuild/pclint/gcc-include-path.lnt
@@ -1,6 +1,6 @@
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include/c++/4.9.3"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include/c++/4.9.3/arm-none-eabi"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include/c++/4.9.3/backward"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/lib/gcc/arm-none-eabi/4.9.3/include"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/lib/gcc/arm-none-eabi/4.9.3/include-fixed"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include/c++/4.9.3"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include/c++/4.9.3/arm-none-eabi"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include/c++/4.9.3/backward"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/lib/gcc/arm-none-eabi/4.9.3/include"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/lib/gcc/arm-none-eabi/4.9.3/include-fixed"
diff --git a/test/nil/testbuild/pclint/gcc-include-path.lnt b/test/nil/testbuild/pclint/gcc-include-path.lnt
index 0e8fd311a..be1d0a6a2 100644
--- a/test/nil/testbuild/pclint/gcc-include-path.lnt
+++ b/test/nil/testbuild/pclint/gcc-include-path.lnt
@@ -1,6 +1,6 @@
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include/c++/4.9.3"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include/c++/4.9.3/arm-none-eabi"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include/c++/4.9.3/backward"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/lib/gcc/arm-none-eabi/4.9.3/include"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/lib/gcc/arm-none-eabi/4.9.3/include-fixed"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include/c++/4.9.3"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include/c++/4.9.3/arm-none-eabi"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include/c++/4.9.3/backward"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/lib/gcc/arm-none-eabi/4.9.3/include"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/lib/gcc/arm-none-eabi/4.9.3/include-fixed"
diff --git a/test/rt/testbuild/pclint/gcc-include-path.lnt b/test/rt/testbuild/pclint/gcc-include-path.lnt
index 0e8fd311a..be1d0a6a2 100644
--- a/test/rt/testbuild/pclint/gcc-include-path.lnt
+++ b/test/rt/testbuild/pclint/gcc-include-path.lnt
@@ -1,6 +1,6 @@
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include/c++/4.9.3"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include/c++/4.9.3/arm-none-eabi"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/arm-none-eabi/include/c++/4.9.3/backward"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/lib/gcc/arm-none-eabi/4.9.3/include"
---i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9 2015q3/lib/gcc/arm-none-eabi/4.9.3/include-fixed"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include/c++/4.9.3"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include/c++/4.9.3/arm-none-eabi"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/arm-none-eabi/include/c++/4.9.3/backward"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/lib/gcc/arm-none-eabi/4.9.3/include"
+--i"C:/ChibiStudio/tools/GNU Tools ARM Embedded/4.9.3 2015q3/lib/gcc/arm-none-eabi/4.9.3/include-fixed"