From 2c757aacd0569a7cf824513ec34e5ed976291597 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 26 Jan 2019 07:57:35 +0000 Subject: MISRA-related fix. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12585 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/nil/include/ch.h | 2 +- test/hal/testbuild/pclint/gcc-include-path.lnt | 12 ++++++------ test/nil/testbuild/pclint/gcc-include-path.lnt | 12 ++++++------ test/rt/testbuild/pclint/gcc-include-path.lnt | 12 ++++++------ 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" -- cgit v1.2.3