From 38d2567c9ffa089661e784b63a5448f8a16572c8 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 30 Nov 2017 16:23:51 -0800 Subject: Stop defining local "unused" macros now this is C++. Bug: N/A Test: builds, boots Change-Id: I3eb075d5003fa7cdc6690f4af29a296e22be257c --- libcutils/socket_local_client_unix.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libcutils/socket_local_client_unix.cpp') diff --git a/libcutils/socket_local_client_unix.cpp b/libcutils/socket_local_client_unix.cpp index 68b2b0ce9..d2b4909d9 100644 --- a/libcutils/socket_local_client_unix.cpp +++ b/libcutils/socket_local_client_unix.cpp @@ -39,8 +39,6 @@ int socket_local_client(const char *name, int namespaceId, int type) #include "socket_local_unix.h" -#define UNUSED __attribute__((unused)) - #define LISTEN_BACKLOG 4 /* Documented in header file. */ @@ -123,9 +121,7 @@ error: * * Used by AndroidSocketImpl */ -int socket_local_client_connect(int fd, const char *name, int namespaceId, - int type UNUSED) -{ +int socket_local_client_connect(int fd, const char* name, int namespaceId, int /*type*/) { struct sockaddr_un addr; socklen_t alen; int err; -- cgit v1.2.3