Reacted on -Wextra -Wno-unused-parameter warnings of gcc for node.c
This commit is contained in:
parent
a698f0ee22
commit
05f26898f3
@ -1573,7 +1573,7 @@ int iso_aa_get_attrs(unsigned char *aa_string, size_t *num_attrs,
|
|||||||
goto ex;
|
goto ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rpt - aa_string != len) {
|
if ((size_t) (rpt - aa_string) != len) {
|
||||||
/* aaip_decode_attrs() returns 2 but still bytes are left */
|
/* aaip_decode_attrs() returns 2 but still bytes are left */
|
||||||
ret = ISO_AAIP_BAD_AASTRING;
|
ret = ISO_AAIP_BAD_AASTRING;
|
||||||
goto ex;
|
goto ex;
|
||||||
@ -1615,7 +1615,7 @@ int iso_aa_lookup_attr(unsigned char *aa_string, char *name,
|
|||||||
|
|
||||||
ret = iso_aa_get_attrs(aa_string, &num_attrs, &names,
|
ret = iso_aa_get_attrs(aa_string, &num_attrs, &names,
|
||||||
&value_lengths, &values, 0);
|
&value_lengths, &values, 0);
|
||||||
for (i = 0; i < num_attrs; i++) {
|
for (i = 0; i < (int) num_attrs; i++) {
|
||||||
if (strcmp(names[i], name))
|
if (strcmp(names[i], name))
|
||||||
continue;
|
continue;
|
||||||
*value_length = value_lengths[i];
|
*value_length = value_lengths[i];
|
||||||
@ -2850,7 +2850,7 @@ int iso_file_get_md5(IsoImage *image, IsoFile *file, char md5[16], int flag)
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
goto ex;
|
goto ex;
|
||||||
}
|
}
|
||||||
for (i = 0; i < value_len; i++)
|
for (i = 0; i < (int) value_len; i++)
|
||||||
idx = (idx << 8) | ((unsigned char *) value)[i];
|
idx = (idx << 8) | ((unsigned char *) value)[i];
|
||||||
if (idx == 0 || idx > image->checksum_idx_count - 1) {
|
if (idx == 0 || idx > image->checksum_idx_count - 1) {
|
||||||
/* (last index is not MD5 of a file) */
|
/* (last index is not MD5 of a file) */
|
||||||
|
Loading…
Reference in New Issue
Block a user