base-sms: fix warnings with -Wshadow

mm-base-sms.c: In function ‘generate_3gpp_submit_pdus’:
  mm-base-sms.c:153:19: error: declaration of ‘i’ shadows a previous local [-Werror=shadow]
    153 |             guint i = 0;
        |                   ^
  mm-base-sms.c:102:11: note: shadowed declaration is here
    102 |     guint i;
        |           ^
This commit is contained in:
Aleksander Morgado
2020-01-30 11:59:14 +01:00
parent 316f2fdff8
commit 1d0ead9aca
+1 -2
View File
@@ -150,8 +150,7 @@ generate_3gpp_submit_pdus (MMBaseSms *self,
if (split_text)
g_strfreev (split_text);
else if (split_data) {
guint i = 0;
i = 0;
while (split_data[i])
g_byte_array_unref (split_data[i++]);
g_free (split_data);