aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);