OSDN Git Service
(root)
/
android-x86
/
hardware-intel-libsensors.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b340a9
)
Fix bool typedef warning
author
Rob Herring
<robh@kernel.org>
Wed, 17 Jan 2018 14:44:07 +0000
(08:44 -0600)
committer
Rob 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
patch
|
blob
|
history
diff --git
a/activity_event_utils.h
b/activity_event_utils.h
index
b54d958
..
32e5cfc
100644
(file)
--- a/
activity_event_utils.h
+++ b/
activity_event_utils.h
@@
-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