Clang warnings.

This commit is contained in:
Roman Telezhynskyi 2021-11-24 14:50:31 +02:00
parent 612306bbd8
commit f28660e0ea

View File

@ -2300,12 +2300,13 @@ bool dxfRW::processEntities(bool isblock) {
if (!reader->readRec(&code)){ if (!reader->readRec(&code)){
return setError(DRW::BAD_READ_ENTITIES); return setError(DRW::BAD_READ_ENTITIES);
} }
bool next = true;
if (code == 0) { if (code == 0) {
nextentity = reader->getString(); nextentity = reader->getString();
} else if (!isblock) { } else if (!isblock) {
return setError(DRW::BAD_READ_ENTITIES); //first record in entities is 0 return setError(DRW::BAD_READ_ENTITIES); //first record in entities is 0
} }
bool processed {false}; bool processed {false};
do { do {
if (nextentity == "ENDSEC" || nextentity == "ENDBLK") { if (nextentity == "ENDSEC" || nextentity == "ENDBLK") {