remove compile warning

parent f827daf9
...@@ -1084,7 +1084,7 @@ DbUtil::prepareOperation(Signal* signal, PreparePtr prepPtr) ...@@ -1084,7 +1084,7 @@ DbUtil::prepareOperation(Signal* signal, PreparePtr prepPtr)
************************/ ************************/
DictTabInfo::Attribute attrDesc; attrDesc.init(); DictTabInfo::Attribute attrDesc; attrDesc.init();
char attrName[MAX_ATTR_NAME_SIZE]; char attrName[MAX_ATTR_NAME_SIZE];
Uint32 attrId; Uint32 attrId= ~(Uint32)0;
bool attributeFound = false; bool attributeFound = false;
Uint32 noOfKeysFound = 0; // # PK attrs found before attr in DICTdata Uint32 noOfKeysFound = 0; // # PK attrs found before attr in DICTdata
Uint32 noOfNonKeysFound = 0; // # nonPK attrs found before attr in DICTdata Uint32 noOfNonKeysFound = 0; // # nonPK attrs found before attr in DICTdata
...@@ -1094,11 +1094,13 @@ DbUtil::prepareOperation(Signal* signal, PreparePtr prepPtr) ...@@ -1094,11 +1094,13 @@ DbUtil::prepareOperation(Signal* signal, PreparePtr prepPtr)
ndbrequire(dictInfoReader.getKey() == DictTabInfo::AttributeName); ndbrequire(dictInfoReader.getKey() == DictTabInfo::AttributeName);
ndbrequire(dictInfoReader.getValueLen() <= MAX_ATTR_NAME_SIZE); ndbrequire(dictInfoReader.getValueLen() <= MAX_ATTR_NAME_SIZE);
dictInfoReader.getString(attrName); dictInfoReader.getString(attrName);
attrId= ~(Uint32)0; // attrId not used
} else { // (tableKey == UtilPrepareReq::TableId) } else { // (tableKey == UtilPrepareReq::TableId)
jam(); jam();
dictInfoReader.next(); // Skip name dictInfoReader.next(); // Skip name
ndbrequire(dictInfoReader.getKey() == DictTabInfo::AttributeId); ndbrequire(dictInfoReader.getKey() == DictTabInfo::AttributeId);
attrId = dictInfoReader.getUint32(); attrId = dictInfoReader.getUint32();
attrName[0]= '\0'; // attrName not used
} }
unpackStatus = SimpleProperties::unpack(dictInfoReader, &attrDesc, unpackStatus = SimpleProperties::unpack(dictInfoReader, &attrDesc,
DictTabInfo::AttributeMapping, DictTabInfo::AttributeMapping,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment