File: incompatible-pointer-types.patch

package info (click to toggle)
med-fichier 4.1.0%2Brepack-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 56,324 kB
  • sloc: cpp: 662,273; ansic: 77,841; python: 36,574; fortran: 12,927; sh: 6,050; f90: 5,531; makefile: 5,191; tcl: 314; xml: 182
file content (48 lines) | stat: -rw-r--r-- 2,225 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Index: med-fichier/src/ci/_MEDfieldComputingStepCheck236.c
===================================================================
--- med-fichier.orig/src/ci/_MEDfieldComputingStepCheck236.c
+++ med-fichier/src/ci/_MEDfieldComputingStepCheck236.c
@@ -146,7 +146,7 @@ med_err _MEDfieldComputingStepCheck236(m
        * On vérifie que le nom du maillage par défaut est le même pour toutes
        * les étapes de calcul de tous les couples (entitytype,geotype)
        */
-      if (_MEDiterate(_cstpid, _MEDcheckAttributeStringFunc, &_itdatas ) < 0) {
+      if (_MEDiterate(_cstpid, (herr_t (*)(void))_MEDcheckAttributeStringFunc, &_itdatas ) < 0) {
 	MED_ERR_(_ret,MED_ERR_INVALID,MED_ERR_ATTRIBUTE,MED_ERR_VALUE_MSG);
 	SSCRUTE(_itdatas.attvalprec); SSCRUTE(_itdatas.attval); goto ERROR;
       }
@@ -157,7 +157,7 @@ med_err _MEDfieldComputingStepCheck236(m
      * les étapes de calcul de tous les couples (entitytype,geotype)
      */
     if (checkmultiplemesh) {
-      if (_MEDiterate(_cstpid, _MEDchecknSublinkFunc, multiplemesh ) < 0) {
+      if (_MEDiterate(_cstpid, (herr_t (*)(void))_MEDchecknSublinkFunc, multiplemesh ) < 0) {
 	MED_ERR_(_ret,MED_ERR_COUNT,MED_ERR_DATAGROUP,MED_ERR_NBR_MSG MED_ERR_MESH_MSG);
 	SSCRUTE(_path);goto ERROR;
       }
Index: med-fichier/src/hdfi/_MEDiterate.c
===================================================================
--- med-fichier.orig/src/hdfi/_MEDiterate.c
+++ med-fichier/src/hdfi/_MEDiterate.c
@@ -32,7 +32,7 @@ _MEDiterate(const med_idt fid,  herr_t (
   med_size   _n;
   hsize_t    _idx=0;
 
-  if ( H5Literate( fid, H5_INDEX_NAME, H5_ITER_NATIVE, &_idx, func, itdatas ) < 0 ) {
+  if ( H5Literate( fid, H5_INDEX_NAME, H5_ITER_NATIVE, &_idx, (H5L_iterate1_t)func, itdatas ) < 0 ) {
     MED_ERR_(_ret,MED_ERR_VISIT,MED_ERR_DATAGROUP,"");
     ISCRUTE_size(_idx);
     goto ERROR;
Index: med-fichier/src/hdfi/_MEDvisit.c
===================================================================
--- med-fichier.orig/src/hdfi/_MEDvisit.c
+++ med-fichier/src/hdfi/_MEDvisit.c
@@ -26,7 +26,7 @@
 
 med_err
 _MEDvisit(const med_idt fid, const char * const srcpath, const char * const dstpath,
-	  herr_t (*func)() )
+	  medvisitorfunc func )
 {
 
   med_err    _ret=-1;