Commit 860e3348 authored by Philip Carns's avatar Philip Carns Committed by Shane Snyder
Browse files

clean up warnings in darshan runtime

- nothing important here, just cutting down noise
parent 8cfe80ee
......@@ -1083,6 +1083,9 @@ static void darshan_get_exe_and_mounts(struct darshan_core_runtime *core,
if(fh) {
ii = 0;
s = fgets(cmdl,DARSHAN_EXE_LEN,fh);
if(!s)
sprintf(cmdl, "%s <unknown args>", __progname_full);
else {
for(i=1;i<DARSHAN_EXE_LEN;i++) {
if(cmdl[i]==0 && ii == 0) {
cmdl[i]=' '; ii = 1;
......@@ -1092,6 +1095,7 @@ static void darshan_get_exe_and_mounts(struct darshan_core_runtime *core,
ii = 0;
}
}
}
fclose(fh);
} else {
sprintf(cmdl, "%s <unknown args>", __progname_full);
......
......@@ -280,9 +280,6 @@ void dxt_posix_runtime_initialize()
#endif
.mod_shutdown_func = &dxt_posix_shutdown
};
int ret;
double tmpfloat;
char *envstr;
/* determine whether tracing should be generally disabled/enabled */
if(getenv("DXT_ENABLE_IO_TRACE"))
......@@ -348,9 +345,6 @@ void dxt_mpiio_runtime_initialize()
#endif
.mod_shutdown_func = &dxt_mpiio_shutdown
};
int ret;
double tmpfloat;
char *envstr;
/* determine whether tracing should be generally disabled/enabled */
if(getenv("DXT_ENABLE_IO_TRACE"))
......
......@@ -247,7 +247,7 @@ static int darshan_mem_alignment = 1;
#define POSIX_RECORD_READ(__ret, __fd, __pread_flag, __pread_offset, __aligned, __tm1, __tm2) do { \
struct posix_file_record_ref* rec_ref; \
size_t stride; \
int64_t stride; \
int64_t this_offset; \
int64_t file_alignment; \
struct darshan_common_val_counter *cvc; \
......@@ -310,7 +310,7 @@ static int darshan_mem_alignment = 1;
#define POSIX_RECORD_WRITE(__ret, __fd, __pwrite_flag, __pwrite_offset, __aligned, __tm1, __tm2) do { \
struct posix_file_record_ref* rec_ref; \
size_t stride; \
int64_t stride; \
int64_t this_offset; \
int64_t file_alignment; \
struct darshan_common_val_counter *cvc; \
......
......@@ -224,14 +224,18 @@ static int darshan_log_get_hdf5_dataset(darshan_fd fd, void** hdf5_buf_p)
{
fprintf(stderr, "Error: Invalid H5D module version number (got %d)\n",
fd->mod_ver[DARSHAN_H5D_MOD]);
return(-1);
ret = -1;
goto exit;
}
if(*hdf5_buf_p == NULL)
{
ds = malloc(sizeof(*ds));
if(!ds)
return(-1);
{
ret = -1;
goto exit;
}
}
if(fd->mod_ver[DARSHAN_H5D_MOD] == DARSHAN_H5D_VER)
......
......@@ -2097,7 +2097,6 @@ void darshan_log_get_name_records(darshan_fd fd,
{
int ret;
struct darshan_name_record_ref *name_hash = NULL;
struct darshan_name_record_ref *ref = NULL;
struct darshan_name_record_ref *tmp = NULL;
struct darshan_name_record_ref *curr = NULL;
......@@ -2140,7 +2139,6 @@ void darshan_log_get_filtered_name_records(darshan_fd fd,
int ret;
struct darshan_name_record_ref *name_hash = NULL;
struct darshan_name_record_ref *ref = NULL;
struct darshan_name_record_ref *tmp = NULL;
struct darshan_name_record_ref *curr = NULL;
......
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