diff --git a/common/bstrlib/bstrlib.c b/common/bstrlib/bstrlib.c index 2b729a9..bc6d207 100644 --- a/common/bstrlib/bstrlib.c +++ b/common/bstrlib/bstrlib.c @@ -317,7 +317,7 @@ char * r; if (b == NULL || b->slen < 0 || b->data == NULL) return NULL; l = b->slen; - r = (char *) bstr__alloc ((size_t) (l + 1)); + r = (char *) bstr__alloc ((size_t)l + 1); if (r == NULL) return r; for (i=0; i < l; i ++) { diff --git a/common/ffsparser.cpp b/common/ffsparser.cpp index c4c8698..6ca2560 100644 --- a/common/ffsparser.cpp +++ b/common/ffsparser.cpp @@ -4513,7 +4513,7 @@ make_partition_table_consistent: info += UString("\nHash: ") + UString(hash.toHex().constData()); UModelIndex codeIndex = model->addItem(localOffset + partitions[i].ptEntry.Offset.Offset, Types::CpdPartition, Subtypes::CodeCpdPartition, name, UString(), info, UByteArray(), partition, UByteArray(), Fixed, parent); - parseRawArea(codeIndex); + (void)parseRawArea(codeIndex); } } else if (partitions[i].type == Types::Padding) {