aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2016-09-15 20:27:43 +0200
committerAndreas Blaesius <skate4life@gmx.de>2016-09-26 19:55:06 +0200
commit15de767dbd529fdb9e65326dd7df0872386745cd (patch)
treeebebc0780c237ef26852a1342ebf84288b64750a
parentc2921845fd350d5fa0e1709a3b4100290bbaf7ef (diff)
downloaddevice_samsung_espressowifi-15de767dbd529fdb9e65326dd7df0872386745cd.zip
device_samsung_espressowifi-15de767dbd529fdb9e65326dd7df0872386745cd.tar.gz
device_samsung_espressowifi-15de767dbd529fdb9e65326dd7df0872386745cd.tar.bz2
libsensors: fix build with clang
Change-Id: I92bd8e7604df00b89d0984f932e609e6b0de2eff
-rw-r--r--libsensors/geomagneticd/geomagneticd.c2
-rw-r--r--libsensors/orientationd/orientationd.c4
-rw-r--r--libsensors/piranha_sensors.c2
3 files changed, 3 insertions, 5 deletions
diff --git a/libsensors/geomagneticd/geomagneticd.c b/libsensors/geomagneticd/geomagneticd.c
index 0f794e8..5dddf98 100644
--- a/libsensors/geomagneticd/geomagneticd.c
+++ b/libsensors/geomagneticd/geomagneticd.c
@@ -443,7 +443,7 @@ complete:
return rc;
}
-int main(int argc, char *argv[])
+int main(int argc __unused, char *argv[] __unused)
{
struct geomagneticd_data *geomagneticd_data = NULL;
char path[PATH_MAX] = { 0 };
diff --git a/libsensors/orientationd/orientationd.c b/libsensors/orientationd/orientationd.c
index 8c7fc79..5e87829 100644
--- a/libsensors/orientationd/orientationd.c
+++ b/libsensors/orientationd/orientationd.c
@@ -152,8 +152,6 @@ int orientation_get_data(struct orientationd_data *data)
{
struct input_event input_event;
int input_fd;
- int activated;
- unsigned int delay;
int rc;
if (data == NULL)
@@ -234,7 +232,7 @@ complete:
return rc;
}
-int main(int argc, char *argv[])
+int main(int argc __unused, char *argv[] __unused)
{
struct orientationd_data *orientationd_data = NULL;
pthread_attr_t thread_attr;
diff --git a/libsensors/piranha_sensors.c b/libsensors/piranha_sensors.c
index 38d999e..2e170b3 100644
--- a/libsensors/piranha_sensors.c
+++ b/libsensors/piranha_sensors.c
@@ -152,7 +152,7 @@ int piranha_sensors_poll(struct sensors_poll_device_t *dev,
{
struct piranha_sensors_device *device;
int i, j;
- int c, n;
+ int n;
int poll_rc, rc;
// ALOGD("%s(%p, %p, %d)", __func__, dev, data, count);