From 2c12802f25cef99da345493d01c54c7c39602ccc Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 12 Nov 2012 10:59:35 +0100 Subject: [PATCH] Fixed HIL compile warnings --- apps/drivers/hil/hil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/drivers/hil/hil.cpp b/apps/drivers/hil/hil.cpp index bef21848b5..abb44886e7 100644 --- a/apps/drivers/hil/hil.cpp +++ b/apps/drivers/hil/hil.cpp @@ -474,6 +474,7 @@ HIL::ioctl(file *filp, int cmd, unsigned long arg) ret = HIL::pwm_ioctl(filp, cmd, arg); break; default: + ret = -ENOTTY; debug("not in a PWM mode"); break; } @@ -489,7 +490,7 @@ int HIL::pwm_ioctl(file *filp, int cmd, unsigned long arg) { int ret = OK; - int channel; + // int channel; lock();