mobile: Fixed compiler warning at gsm322.c
This patch resolves the following issue: In function 'memset', inlined from 'bargraph.constprop.14' at gsm322.c:325:8: /usr/include/bits/string3.h:81:30: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]
This commit is contained in:
parent
134c95c817
commit
80813208e1
|
@ -322,6 +322,7 @@ static char *bargraph(int value, int min, int max)
|
||||||
else
|
else
|
||||||
value -= min;
|
value -= min;
|
||||||
|
|
||||||
|
if (value)
|
||||||
memset(bar, '=', value);
|
memset(bar, '=', value);
|
||||||
bar[value] = '\0';
|
bar[value] = '\0';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue