From 3ef7e7440b5c5fe530a55dc3f7f7be58bda9bc49 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 30 Apr 2018 07:44:56 +0200 Subject: 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 91839ff971..985a59e8ce 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. -- cgit v1.2.3