Blame SOURCES/hdf5-warning.patch

71f737
diff -up hdf5-1.10.7/testpar/t_cache.c.warning hdf5-1.10.7/testpar/t_cache.c
71f737
--- hdf5-1.10.7/testpar/t_cache.c.warning	2020-09-04 15:50:58.000000000 -0600
71f737
+++ hdf5-1.10.7/testpar/t_cache.c	2020-10-07 20:23:01.877566435 -0600
71f737
@@ -80,8 +80,8 @@ long local_pins           = 0;
71f737
 
71f737
 
71f737
 /* the following fields are used by the server process only */
71f737
-int total_reads           = 0;
71f737
-int total_writes           = 0;
71f737
+unsigned total_reads           = 0;
71f737
+unsigned total_writes           = 0;
71f737
 
71f737
 
71f737
 /*****************************************************************************
71f737
@@ -176,8 +176,8 @@ struct datum
71f737
     hbool_t        local_pinned;
71f737
     hbool_t        cleared;
71f737
     hbool_t             flushed;
71f737
-    int            reads;
71f737
-    int            writes;
71f737
+    unsigned       reads;
71f737
+    unsigned       writes;
71f737
     int            index;
71f737
     struct H5AC_aux_t * aux_ptr;
71f737
 };
71f737
@@ -2445,12 +2445,12 @@ static herr_t
71f737
 datum_image_len(const void *thing, size_t *image_len)
71f737
 {
71f737
     int idx;
71f737
-    struct datum * entry_ptr;
71f737
+    const struct datum * entry_ptr;
71f737
 
71f737
     HDassert( thing );
71f737
     HDassert( image_len );
71f737
 
71f737
-    entry_ptr = (struct datum *)thing;
71f737
+    entry_ptr = (const struct datum *)thing;
71f737
 
71f737
     idx = addr_to_datum_index(entry_ptr->base_addr);
71f737
 
71f737
@@ -4612,7 +4612,7 @@ verify_entry_reads(haddr_t addr,
71f737
                    int expected_entry_reads)
71f737
 {
71f737
     hbool_t success = TRUE;
71f737
-    int reported_entry_reads = 0;
71f737
+    unsigned reported_entry_reads = 0;
71f737
     struct mssg_t mssg;
71f737
 
71f737
     if ( success ) {
71f737
@@ -4719,7 +4719,7 @@ verify_entry_writes(haddr_t addr,
71f737
                     int expected_entry_writes)
71f737
 {
71f737
     hbool_t success = TRUE;
71f737
-    int reported_entry_writes = 0;
71f737
+    unsigned reported_entry_writes = 0;
71f737
     struct mssg_t mssg;
71f737
 
71f737
     if ( success ) {
71f737
@@ -4824,7 +4824,7 @@ static hbool_t
71f737
 verify_total_reads(int expected_total_reads)
71f737
 {
71f737
     hbool_t success = TRUE; /* will set to FALSE if appropriate. */
71f737
-    long reported_total_reads;
71f737
+    unsigned reported_total_reads;
71f737
     struct mssg_t mssg;
71f737
 
71f737
     if ( success ) {