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
|
From: Bas Couwenberg <sebastic@debian.org>
Date: Sun, 5 Jan 2025 10:31:21 +0000
Subject: Fix FTBFS with GCC 14 (-Wincompatible-pointer-types).
Forwarded: https://github.com/fhs/pyhdf/pull/75
---
pyhdf/hdfext_wrap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyhdf/hdfext_wrap.c b/pyhdf/hdfext_wrap.c
index 80b3410..7982db1 100644
--- a/pyhdf/hdfext_wrap.c
+++ b/pyhdf/hdfext_wrap.c
@@ -4107,7 +4107,7 @@ static PyObject * _SDwritedata_0(int32 sds_id, int32 data_type,
#include "hcomp.h"
-static int32 _SDgetcompress(int32 sds_id, int32 *comp_type, int32 *value,
+static int32 _SDgetcompress(int32 sds_id, comp_coder_t *comp_type, int32 *value,
int32 *v2, int32 *v3, int32 *v4, int32 *v5) {
comp_info c_info;
@@ -7319,7 +7319,7 @@ SWIGINTERN PyObject *_wrap__SDgetcompress(PyObject *self, PyObject *args) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_SDgetcompress" "', argument " "1"" of type '" "int32""'");
}
arg1 = (int32)(val1);
- result = (int32)_SDgetcompress(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
+ result = (int32)_SDgetcompress(arg1,(comp_coder_t *)arg2,arg3,arg4,arg5,arg6,arg7);
resultobj = SWIG_From_int((int)(result));
if (SWIG_IsTmpObj(res2)) {
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|