Silence unused result warnings in conscrypt.
So we can turn on _FORTIFY_SOURCE=2 for the host.
Bug: http://b/20558757
Change-Id: Ie2b3eb7efb69a3def64be2c35bd8cc5fe3a8d85e
diff --git a/src/main/native/org_conscrypt_NativeCrypto.cpp b/src/main/native/org_conscrypt_NativeCrypto.cpp
index a730d85..040d59c 100644
--- a/src/main/native/org_conscrypt_NativeCrypto.cpp
+++ b/src/main/native/org_conscrypt_NativeCrypto.cpp
@@ -7463,7 +7463,7 @@
if (FD_ISSET(appData->fdsEmergency[0], &rfds)) {
char token;
do {
- read(appData->fdsEmergency[0], &token, 1);
+ (void) read(appData->fdsEmergency[0], &token, 1);
} while (errno == EINTR);
}
}
@@ -7492,7 +7492,7 @@
char token = '*';
do {
errno = 0;
- write(appData->fdsEmergency[1], &token, 1);
+ (void) write(appData->fdsEmergency[1], &token, 1);
} while (errno == EINTR);
errno = errnoBackup;
}