summaryrefslogtreecommitdiffstats
path: root/liblog/fake_log_device.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-04-30 08:50:53 -0700
committerMark Salyzyn <salyzyn@google.com>2014-05-07 16:56:21 -0700
commita04464adaf5b95ae953f8577632d3cf8aa2c80a3 (patch)
treec4310ee12b17d98841e3e7cdd819618f8a95c080 /liblog/fake_log_device.c
parentd150618d8d31ca1b56258902c40ad5c38f1c4e31 (diff)
downloadsystem_core-a04464adaf5b95ae953f8577632d3cf8aa2c80a3.tar.gz
system_core-a04464adaf5b95ae953f8577632d3cf8aa2c80a3.tar.bz2
system_core-a04464adaf5b95ae953f8577632d3cf8aa2c80a3.zip
liblog: set -Werror
- Deal with some -Wunused issues - Cleanup UNUSED to __unused transition Change-Id: Icd33808d4c974625f4fd0a126a90a2b4c90c8314
Diffstat (limited to 'liblog/fake_log_device.c')
-rw-r--r--liblog/fake_log_device.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/liblog/fake_log_device.c b/liblog/fake_log_device.c
index da83a8525..136792ddd 100644
--- a/liblog/fake_log_device.c
+++ b/liblog/fake_log_device.c
@@ -21,18 +21,22 @@
*/
#include "fake_log_device.h"
-#include <log/logd.h>
-
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <log/logd.h>
#ifdef HAVE_PTHREADS
#include <pthread.h>
#endif
+#ifndef __unused
+#define __unused __attribute__((__unused__))
+#endif
+
#define kMaxTagLen 16 /* from the long-dead utils/Log.cpp */
#define kTagSetSize 16 /* arbitrary */
@@ -613,7 +617,7 @@ static int logClose(int fd)
/*
* Open a log output device and return a fake fd.
*/
-static int logOpen(const char* pathName, int flags)
+static int logOpen(const char* pathName, int flags __unused)
{
LogState *logState;
int fd = -1;