You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.0 KiB
68 lines
2.0 KiB
diff -up hdf5-1.10.7/testpar/t_cache.c.warning hdf5-1.10.7/testpar/t_cache.c
|
|
--- hdf5-1.10.7/testpar/t_cache.c.warning 2020-09-04 15:50:58.000000000 -0600
|
|
+++ hdf5-1.10.7/testpar/t_cache.c 2020-10-07 20:23:01.877566435 -0600
|
|
@@ -80,8 +80,8 @@ long local_pins = 0;
|
|
|
|
|
|
/* the following fields are used by the server process only */
|
|
-int total_reads = 0;
|
|
-int total_writes = 0;
|
|
+unsigned total_reads = 0;
|
|
+unsigned total_writes = 0;
|
|
|
|
|
|
/*****************************************************************************
|
|
@@ -176,8 +176,8 @@ struct datum
|
|
hbool_t local_pinned;
|
|
hbool_t cleared;
|
|
hbool_t flushed;
|
|
- int reads;
|
|
- int writes;
|
|
+ unsigned reads;
|
|
+ unsigned writes;
|
|
int index;
|
|
struct H5AC_aux_t * aux_ptr;
|
|
};
|
|
@@ -2445,12 +2445,12 @@ static herr_t
|
|
datum_image_len(const void *thing, size_t *image_len)
|
|
{
|
|
int idx;
|
|
- struct datum * entry_ptr;
|
|
+ const struct datum * entry_ptr;
|
|
|
|
HDassert( thing );
|
|
HDassert( image_len );
|
|
|
|
- entry_ptr = (struct datum *)thing;
|
|
+ entry_ptr = (const struct datum *)thing;
|
|
|
|
idx = addr_to_datum_index(entry_ptr->base_addr);
|
|
|
|
@@ -4612,7 +4612,7 @@ verify_entry_reads(haddr_t addr,
|
|
int expected_entry_reads)
|
|
{
|
|
hbool_t success = TRUE;
|
|
- int reported_entry_reads = 0;
|
|
+ unsigned reported_entry_reads = 0;
|
|
struct mssg_t mssg;
|
|
|
|
if ( success ) {
|
|
@@ -4719,7 +4719,7 @@ verify_entry_writes(haddr_t addr,
|
|
int expected_entry_writes)
|
|
{
|
|
hbool_t success = TRUE;
|
|
- int reported_entry_writes = 0;
|
|
+ unsigned reported_entry_writes = 0;
|
|
struct mssg_t mssg;
|
|
|
|
if ( success ) {
|
|
@@ -4824,7 +4824,7 @@ static hbool_t
|
|
verify_total_reads(int expected_total_reads)
|
|
{
|
|
hbool_t success = TRUE; /* will set to FALSE if appropriate. */
|
|
- long reported_total_reads;
|
|
+ unsigned reported_total_reads;
|
|
struct mssg_t mssg;
|
|
|
|
if ( success ) {
|