Skip to content

Commit

Permalink
Kill warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Dec 19, 2020
1 parent b5b1288 commit 87fb867
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions source/adios2/toolkit/sst/cp/ffs_marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2107,8 +2107,6 @@ extern void SstFFSMarshal(SstStream Stream, void *Variable, const char *Name,
{

struct FFSMetadataInfoStruct *MBase;
struct FFSWriterMarshalBase *Info;
Info = (struct FFSWriterMarshalBase *)Stream->WriterMarshalData;

FFSWriterRec Rec = LookupWriterRec(Stream, Variable);
if (!Rec)
Expand Down Expand Up @@ -2154,7 +2152,6 @@ extern void SstFFSMarshal(SstStream Stream, void *Variable, const char *Name,
// dimensions can change )
// Also assume Dims is always right and consistent, otherwise, bad
// things
size_t *PreviousCounts = MetaEntry->Count;
MetaEntry->DBCount += DimCount;
MetaEntry->Count =
AppendDims(MetaEntry->Count, PreviousDBCount, DimCount, Count);
Expand Down Expand Up @@ -2193,8 +2190,9 @@ extern void SstFFSMarshal(SstStream Stream, void *Variable, const char *Name,
DataEntry->Array =
realloc(DataEntry->Array,
(DataEntry->ElemCount + ElemCount) * ElemSize);
memcpy(DataEntry->Array + DataEntry->ElemCount * ElemSize, Data,
ElemCount * ElemSize);
memcpy((char *)DataEntry->Array +
DataEntry->ElemCount * ElemSize,
Data, ElemCount * ElemSize);
DataEntry->ElemCount += ElemCount;
}
}
Expand Down

0 comments on commit 87fb867

Please sign in to comment.