File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ if (MFC_SILO)
6868        GIT_REPOSITORY "https://github.com/LLNL/Silo" 
6969        GIT_TAG        438477c80d32a3e1757d4584b993f382cace1535
7070        GIT_PROGRESS   ON 
71-         PATCH_COMMAND  "${GIT_EXECUTABLE} "  stash && "${GIT_EXECUTABLE} "  apply "${CMAKE_SOURCE_DIR} /Silo.patch" 
71+         PATCH_COMMAND  "${GIT_EXECUTABLE} "  stash
72+                        && "${GIT_EXECUTABLE} "  apply "${CMAKE_SOURCE_DIR} /Silo.patch" 
73+                        && "${GIT_EXECUTABLE} "  apply "${CMAKE_SOURCE_DIR} /Silo-GNU-13.patch" 
7274        CMAKE_ARGS      -DSILO_ENABLE_SHARED=OFF 
7375                        -DSILO_ENABLE_SILOCK=OFF 
7476                        -DSILO_ENABLE_BROWSER=OFF 
Original file line number Diff line number Diff line change 1+ From 51f0a23e72b366358146bb272d6d5c297929b0b0 Mon Sep 17 00:00:00 2001
2+ From: Henry LE BERRE <
[email protected] >
3+ Date: Thu, 30 May 2024 19:15:23 +0200
4+ Subject: [PATCH] Temporary GNU 13 Silo Build Fix
5+ 
6+ --- 
7+  src/hdf5_drv/silo_hdf5.c | 8 ++++++--
8+  1 file changed, 6 insertions(+), 2 deletions(-)
9+ 
10+ diff --git a/src/hdf5_drv/silo_hdf5.c b/src/hdf5_drv/silo_hdf5.c 
11+ index 9a00194..cc23fbf 100644
12+ --- a/src/hdf5_drv/silo_hdf5.c 
13+ +++ b/src/hdf5_drv/silo_hdf5.c 
14+ @@ -1810,8 +1810,12 @@  db_hdf5_cwg(DBfile *_dbfile)
15+          else                                                     \
16+               *dscount = m.MEMCNT;                                \
17+          *dsnames = (char **) calloc(*dscount, sizeof(char**));   \
18+ -         for (i = 0; i < *dscount; i++)                           \
19+ -             (*dsnames)[i] = strdup(m.MEMNAME[i]);                \
20+ +         if (sizeof(m.MEMNAME[0]) >= sizeof(char)) {              \
21+ +             for (i = 0; i < *dscount; i++)                       \
22+ +                 (*dsnames)[i] = strdup((char*)m.MEMNAME[i]);     \
23+ +         } else {                                                 \
24+ +             (*dsnames)[0] = strdup((char*)m.MEMNAME);            \
25+ +         }                                                        \
26+          break;                                                   \
27+      }
28+  
29+ - - 
30+ 2.45.1
31+ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments