Blame SOURCES/hdf5-warning.patch

e51905
diff -up hdf5-1.10.4/testpar/t_cache.c.warning hdf5-1.10.4/testpar/t_cache.c
e51905
--- hdf5-1.10.4/testpar/t_cache.c.warning	2018-09-10 08:43:41.000000000 -0600
e51905
+++ hdf5-1.10.4/testpar/t_cache.c	2018-11-24 08:08:37.333832898 -0700
e51905
@@ -79,8 +79,8 @@ long local_pins           = 0;
6c0b01
 
6c0b01
 
6c0b01
 /* the following fields are used by the server process only */
6c0b01
-int total_reads           = 0;
6c0b01
-int total_writes           = 0;
6c0b01
+unsigned total_reads           = 0;
6c0b01
+unsigned total_writes           = 0;
6c0b01
 
6c0b01
 
6c0b01
 /*****************************************************************************
e51905
@@ -175,8 +175,8 @@ struct datum
6c0b01
     hbool_t        local_pinned;
6c0b01
     hbool_t        cleared;
6c0b01
     hbool_t             flushed;
6c0b01
-    int            reads;
6c0b01
-    int            writes;
6c0b01
+    unsigned       reads;
6c0b01
+    unsigned       writes;
6c0b01
     int            index;
6c0b01
     struct H5AC_aux_t * aux_ptr;
6c0b01
 };
e51905
@@ -2197,7 +2197,7 @@ serve_entry_reads_request(struct mssg_t
e51905
             reply.base_addr = target_addr;
e51905
             reply.len       = 0;
e51905
             reply.ver       = 0;
e51905
-        reply.count     = (long)(data[target_index].reads);
e51905
+            reply.count     = data[target_index].reads;
e51905
             reply.magic     = MSSG_MAGIC;
e51905
         }
e51905
     }
e51905
@@ -2446,12 +2446,12 @@ static herr_t
6c0b01
 datum_image_len(const void *thing, size_t *image_len)
6c0b01
 {
6c0b01
     int idx;
6c0b01
-    struct datum * entry_ptr;
6c0b01
+    const struct datum * entry_ptr;
6c0b01
 
6c0b01
     HDassert( thing );
6c0b01
     HDassert( image_len );
6c0b01
 
6c0b01
-    entry_ptr = (struct datum *)thing;
6c0b01
+    entry_ptr = (const struct datum *)thing;
6c0b01
 
6c0b01
     idx = addr_to_datum_index(entry_ptr->base_addr);
6c0b01
 
e51905
@@ -4615,7 +4615,7 @@ verify_entry_reads(haddr_t addr,
6c0b01
                    int expected_entry_reads)
6c0b01
 {
6c0b01
     hbool_t success = TRUE;
e51905
-    int reported_entry_reads;
6c0b01
+    unsigned reported_entry_reads = 0;
6c0b01
     struct mssg_t mssg;
6c0b01
 
6c0b01
     if ( success ) {
e51905
@@ -4722,7 +4722,7 @@ verify_entry_writes(haddr_t addr,
6c0b01
                     int expected_entry_writes)
6c0b01
 {
6c0b01
     hbool_t success = TRUE;
e51905
-    int reported_entry_writes;
6c0b01
+    unsigned reported_entry_writes = 0;
6c0b01
     struct mssg_t mssg;
6c0b01
 
6c0b01
     if ( success ) {
e51905
@@ -4827,7 +4827,7 @@ static hbool_t
6c0b01
 verify_total_reads(int expected_total_reads)
6c0b01
 {
6c0b01
     hbool_t success = TRUE; /* will set to FALSE if appropriate. */
6c0b01
-    long reported_total_reads;
6c0b01
+    unsigned reported_total_reads;
6c0b01
     struct mssg_t mssg;
6c0b01
 
6c0b01
     if ( success ) {