added getters, compiler warnings

This commit is contained in:
john30
2014-11-16 10:52:19 +01:00
parent 63cde34e6a
commit f074ff35a4
-2
View File
@@ -239,8 +239,6 @@ result_t DataField::create(std::vector<std::string>::iterator& it, const std::ve
}
found = true;
DataField* templ = ref->second;
dataType_t dataType = templ->m_dataType;
unsigned char numBytes = (dataType.numBits+7)/8;
if (length != 0 && length != templ->m_length)
return RESULT_ERR_INVALID_ARG; // different length not possible for derivation
unsigned char deriveOffset = offset == 0 ? templ->m_offset : offset;