Demote errors to warnings for a couple of unused-but-set variables that

I cannot untangle right now.
This commit is contained in:
David Young 2019-11-13 11:26:49 -06:00
parent aa0f3cb1a8
commit 77a9806ab5
2 changed files with 7 additions and 0 deletions

View File

@ -258,6 +258,8 @@ free_exclude_path_list(diff_opt_t *opts)
* Parameter: * Parameter:
* table_out [OUT] : return the list * table_out [OUT] : return the list
*------------------------------------------------------------------------*/ *------------------------------------------------------------------------*/
#pragma GCC diagnostic push
#pragma GCC diagnostic warning "-Wunused-but-set-variable"
static void static void
build_match_list (const char *objname1, trav_info_t *info1, const char *objname2, trav_info_t *info2, build_match_list (const char *objname1, trav_info_t *info1, const char *objname2, trav_info_t *info2,
trav_table_t ** table_out, diff_opt_t *opts) trav_table_t ** table_out, diff_opt_t *opts)
@ -374,6 +376,7 @@ done:
*table_out = table; *table_out = table;
h5difftrace("build_match_list finish\n"); h5difftrace("build_match_list finish\n");
} }
#pragma GCC diagnostic pop
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------

View File

@ -2245,6 +2245,9 @@ static hsize_t character_compare(char *mem1, char *mem2, hsize_t i, size_t u,
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#pragma GCC diagnostic push
#pragma GCC diagnostic warning "-Wunused-but-set-variable"
static hsize_t character_compare_opt(unsigned char *mem1, unsigned char *mem2, static hsize_t character_compare_opt(unsigned char *mem1, unsigned char *mem2,
hsize_t i, int rank, hsize_t *dims, hsize_t *acc, hsize_t *pos, diff_opt_t *opts, const char *obj1, const char *obj2, int *ph) hsize_t i, int rank, hsize_t *dims, hsize_t *acc, hsize_t *pos, diff_opt_t *opts, const char *obj1, const char *obj2, int *ph)
{ {
@ -2305,6 +2308,7 @@ static hsize_t character_compare_opt(unsigned char *mem1, unsigned char *mem2,
return nfound; return nfound;
} }
#pragma GCC diagnostic pop
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
* Function: diff_float * Function: diff_float