OSDN Git Service

Fix bool typedef warning
authorRob Herring <robh@kernel.org>
Wed, 17 Jan 2018 14:44:07 +0000 (08:44 -0600)
committerRob Herring <robh@kernel.org>
Wed, 17 Jan 2018 14:44:07 +0000 (08:44 -0600)
Builds on AOSP master now fail with the error:

activity_event_utils.h:27:9: error: 'bool' cannot be signed or unsigned typedef unsigned bool;

Use the C99 type _Bool for bool instead.

Signed-off-by: Rob Herring <robh@kernel.org>
activity_event_utils.h

index b54d958..32e5cfc 100644 (file)
@@ -24,7 +24,7 @@
 #define MAX_ACTIVITIES         6
 #define MAX_EVENTS_PER_ACTIVITY        2
 
-typedef unsigned bool;
+typedef _Bool bool;
 #define true   1
 #define false  0