Skip to content

Commit

Permalink
h5vol: squash PGI warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Atkins committed Jan 2, 2021
1 parent f87f49f commit 9d7285e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
48 changes: 2 additions & 46 deletions source/h5vol/H5VolReadWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ static hid_t H5VL_ADIOS_g = -1;

static adios2_adios *m_ADIOS2 = NULL;
// static adios2_io *m_IO = NULL;
static const char *m_ADIOS2Separator = "/";
static int m_MPIRank = 0;

#define RANK_ZERO_MSG(...) \
Expand Down Expand Up @@ -238,9 +237,6 @@ void gFreeVol(H5VL_ObjDef_t *vol)
if (NULL == vol)
return;

// m_ObjPtr is taken care of by caller
int i;

if (NULL != vol->m_Vars)
{
SAFE_FREE(vol->m_Vars);
Expand Down Expand Up @@ -566,8 +562,8 @@ H5VL_VarDef_t *gCreateVarDef(const char *name, adios2_engine *engine,

varDef->m_Engine = engine;
varDef->m_Variable = var;
varDef->m_DimCount = -1; // default: unknown
varDef->m_TypeID = -1; // default: unknown
varDef->m_DimCount = (size_t)-1; // default: unknown
varDef->m_TypeID = -1; // default: unknown
varDef->m_Data = NULL;

if (space_id != -1) // most likely from H5Dcreate
Expand Down Expand Up @@ -1061,8 +1057,6 @@ adios2_attribute *gADIOS2CreateAttr(adios2_io *io, H5VL_AttrDef_t *input,
return adios2_define_attribute_array(io, fullPath, attrType,
(input->m_Data), shape[0]);
}

return NULL;
}

adios2_attribute *gADIOS2InqAttr(adios2_io *io, const char *name)
Expand All @@ -1076,44 +1070,6 @@ bool gADIOS2RemoveAttr(adios2_io *io, const char *name)
adios2_remove_attribute(&result, io, name);
return (adios2_true == result);
}
/*
static int h5i_search_func(void *obj, hid_t id, void *key) {
if (key == obj) {
printf("id = %llu\n", id);
return 1;
} else
return 0;
}
*/
//
// either "ts_number" or ".../ts_number"
// is a valid dataset name
//
static int isDatasetName(const char *name)
{
size_t len = strlen(name);
while (true)
{
char c = name[len - 1];
if (c >= '0' && c <= '9')
{
len--;
if (len == 0)
{
return 1;
}
}
else if ((len < strlen(name)) && (c == '/'))
{
return 1;
}
else
{
break;
}
}
return 0;
}

hid_t H5VL_adios_register(void)
{
Expand Down
1 change: 0 additions & 1 deletion source/h5vol/H5Vol_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ herr_t H5VL_adios2_attr_write(void *attr, hid_t mem_type_id, const void *buf,
void GetFromAttribute(void *attrObj, hid_t *ret_id, H5VL_attr_get_t get_type)
{
H5VL_AttrDef_t *attrDef = (H5VL_AttrDef_t *)attrObj;
adios2_attribute *attr = attrDef->m_Attribute;

switch (get_type)
{
Expand Down

0 comments on commit 9d7285e

Please sign in to comment.