[rtems commit] config: Fix -Wint-in-bool-context warnings

Sebastian Huber sebh at rtems.org
Mon Apr 30 06:08:21 UTC 2018


Module:    rtems
Branch:    master
Commit:    3ef7e7440b5c5fe530a55dc3f7f7be58bda9bc49
Changeset: http://git.rtems.org/rtems/commit/?id=3ef7e7440b5c5fe530a55dc3f7f7be58bda9bc49

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Apr 30 07:44:56 2018 +0200

config: Fix -Wint-in-bool-context warnings

---

 cpukit/include/rtems/confdefs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h
index 91839ff..985a59e 100755
--- a/cpukit/include/rtems/confdefs.h
+++ b/cpukit/include/rtems/confdefs.h
@@ -1324,7 +1324,7 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
 /**
  * Zero of one returns 0 if the parameter is 0 else 1 is returned.
  */
-#define _Configure_Zero_or_One(_number) ((_number) ? 1 : 0)
+#define _Configure_Zero_or_One(_number) ((_number) != 0 ? 1 : 0)
 
 /**
  * General helper to align up a value.




More information about the vc mailing list