Commit c8026d6b authored by Shane Snyder's avatar Shane Snyder

clean up compile warnings

parent 0448ed3c
......@@ -45,7 +45,7 @@ typedef enum
DARSHAN_PNETCDF_MOD,
} darshan_module_id;
static char *darshan_module_names[] =
static char * const darshan_module_names[] =
{
"POSIX",
"MPI-IO",
......
......@@ -252,7 +252,6 @@ static void darshan_core_shutdown()
double mod2[DARSHAN_MAX_MODS] = {0};
double header1, header2;
double tm_end;
long offset;
uint64_t gz_fp = 0;
uint64_t tmp_off = 0;
MPI_File log_fh;
......@@ -469,10 +468,8 @@ static void darshan_core_shutdown()
struct darshan_core_module* this_mod = final_core->mod_array[i];
darshan_record_id mod_shared_recs[DARSHAN_CORE_MAX_RECORDS];
struct darshan_core_record_ref *ref = NULL;
int shared_rec_cnt = 0;
void* mod_buf = NULL;
int mod_buf_sz = 0;
int comp_buf_sz = 0;
int j;
if(global_mod_use_count[i] == 0)
......@@ -1296,7 +1293,7 @@ static int darshan_deflate_buffer(void **pointers, int *lengths, int count,
return(-1);
}
tmp_stream.next_out = comp_buf;
tmp_stream.next_out = (unsigned char *)comp_buf;
tmp_stream.avail_out = DARSHAN_CORE_COMP_BUF_SIZE;
/* loop over the input pointers */
......@@ -1357,7 +1354,6 @@ static int darshan_log_write_record_hash(MPI_File log_fh, struct darshan_core_ru
size_t hash_buf_sz = 0;
char *hash_buf;
char *hash_buf_off;
MPI_Status status;
/* allocate a buffer to store at most 64 bytes for each of a max number of records */
/* NOTE: this buffer may be reallocated if estimate is too small */
......
......@@ -642,9 +642,6 @@ int DARSHAN_DECL(close)(int fd)
static void posix_runtime_initialize()
{
char *alignstr;
int tmpval;
int ret;
int mem_limit;
struct darshan_module_funcs posix_mod_fns =
{
......@@ -857,7 +854,6 @@ static void posix_prepare_for_reduction(
int *rec_size)
{
struct posix_file_runtime *file;
struct darshan_posix_file *tmp_array;
int i;
assert(posix_runtime);
......
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