Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-libsensors: Commit

hardware/intel/libsensors


Commit MetaInfo

Revision6eb1fe7b9b1ea91d01eae6fab49affb44f32d9b7 (tree)
Zeit2018-01-17 23:44:07
AutorRob Herring <robh@kern...>
CommiterRob Herring

Log Message

Fix bool typedef warning

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>

Ändern Zusammenfassung

Diff

--- a/activity_event_utils.h
+++ b/activity_event_utils.h
@@ -24,7 +24,7 @@
2424 #define MAX_ACTIVITIES 6
2525 #define MAX_EVENTS_PER_ACTIVITY 2
2626
27-typedef unsigned bool;
27+typedef _Bool bool;
2828 #define true 1
2929 #define false 0
3030
Show on old repository browser