diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-04-29 15:49:14 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-05-01 17:58:17 -0700 |
commit | 12717169a51335f4b20b7c78a63b9ab66a81a366 (patch) | |
tree | 577dfc1bf9eecdb360e46a63d14de1caeca38a0d /libcutils/sockets.c | |
parent | 3754791dd5415c2e99d3bfd6599d414a202cbfc3 (diff) | |
download | system_core-12717169a51335f4b20b7c78a63b9ab66a81a366.zip system_core-12717169a51335f4b20b7c78a63b9ab66a81a366.tar.gz system_core-12717169a51335f4b20b7c78a63b9ab66a81a366.tar.bz2 |
libcutils: turn on -Werror
- Deal with some -Wunused / -Wunused-variable issues
Change-Id: I28c23fb213382a392ec30935749fb359e072d664
Diffstat (limited to 'libcutils/sockets.c')
-rw-r--r-- | libcutils/sockets.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libcutils/sockets.c b/libcutils/sockets.c index b5a1b3d..15ede2b 100644 --- a/libcutils/sockets.c +++ b/libcutils/sockets.c @@ -14,15 +14,18 @@ * limitations under the License. */ -#include <cutils/log.h> #include <cutils/sockets.h> +#include <log/log.h> #ifdef HAVE_ANDROID_OS /* For the socket trust (credentials) check */ #include <private/android_filesystem_config.h> +#define __android_unused +#else +#define __android_unused __attribute__((__unused__)) #endif -bool socket_peer_is_trusted(int fd) +bool socket_peer_is_trusted(int fd __android_unused) { #ifdef HAVE_ANDROID_OS struct ucred cr; |