fastboot driver: Disallow implicit conversion from unique_fd to int.
Do not use the implicit cast from unique_fd to int so
that it is clearer to the reader what the ownership model
is.
Test: pass
Change-Id: Iaf40a6eed3fcfd001651980c865ed5efb85ac0eb
diff --git a/fastboot/Android.bp b/fastboot/Android.bp
index 3c4269b..0ca8ba8 100644
--- a/fastboot/Android.bp
+++ b/fastboot/Android.bp
@@ -206,6 +206,7 @@
"-Wextra",
"-Werror",
"-Wunreachable-code",
+ "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION",
],
target: {