Private
Public Access
2
0

arm: fix compiler warnings

There were unused variables, incorrect pointer operations
and plan broken string comparison.

Now there's only one - for unused uart3_enabled in beaglebone.c,
but we want to keep it for declaration consistency.

Also fixes #757.

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
This commit is contained in:
Alex Tereschenko
2017-08-10 21:08:44 +02:00
parent c4e23e1a41
commit ba72c5b089
7 changed files with 19 additions and 21 deletions

View File

@@ -98,7 +98,6 @@ mraa_pwm_context
mraa_phyboard_pwm_init_replace(int pin)
{
char devpath[MAX_SIZE];
int length = strlen(SYSFS_CLASS_PWM) + 5;
if (plat == NULL) {
syslog(LOG_ERR, "pwm: Platform Not Initialised");