CC src/hardware/baylibre-acme/protocol.lo
../src/hardware/baylibre-acme/protocol.c: In function 'bl_acme_set_power_off':
../src/hardware/baylibre-acme/protocol.c:417:6: warning: variable 'val' set but not used [-Wunused-but-set-variable]
int val;
^
gboolean off)
{
struct channel_group_priv *cgp;
- int val;
cgp = cg->priv;
return SR_ERR_ARG;
}
- val = sr_gpio_setval_export(pws_gpios[cgp->index], off ? 0 : 1);
+ sr_gpio_setval_export(pws_gpios[cgp->index], off ? 0 : 1);
return SR_OK;
}