Source: https://sourceforge.net/p/sblim/bugs/2771/attachment/c89.patch sblim-sfcc: Pointer casts for compatibility with C89, GCC 14 https://sourceforge.net/p/sblim/bugs/2771/ Fixes -Wincompatible-pointer-types error with gcc 14. ``` v2test_ec.c: In function 'main': v2test_ec.c:86:31: error: passing argument 1 of 'showClass' from incompatible pointer type [-Wincompatible-pointer-types] 86 | showClass(data.value.cls); | ~~~~~~~~~~^~~~ | | | CIMCClass * {aka struct _CIMCClass *} In file included from v2test_ec.c:7: show.h:9:34: note: expected 'CMPIConstClass *' {aka 'struct _CMPIConstClass *'} but argument is of type 'CIMCClass *' {aka 'struct _CIMCClass *'} 9 | void showClass( CMPIConstClass * in_class ); | ~~~~~~~~~ ``` -- Add casts required for C89 compatibility. This addresses a build failure with GCC 14. diff --git a/TEST/v2test_ec.c b/TEST/v2test_ec.c index 940ca57638ceec79..042a9a0c4d5a7abf 100644 --- a/TEST/v2test_ec.c +++ b/TEST/v2test_ec.c @@ -83,7 +83,7 @@ int main() count = enm->ft->hasNext(enm, NULL) ; while (count > 0) { data = enm->ft->getNext(enm, NULL); - showClass(data.value.cls); + showClass((CMPIConstClass *) data.value.cls); /* * see if we have any more */ diff --git a/TEST/v2test_ein.c b/TEST/v2test_ein.c index ede95c18a5b48ff8..712c204bd3aac357 100644 --- a/TEST/v2test_ein.c +++ b/TEST/v2test_ein.c @@ -93,7 +93,7 @@ int count = 0; data = enm->ft->getNext(enm, NULL); - showObjectPath(data.value.ref); + showObjectPath((CMPIObjectPath *) data.value.ref); /* * see if we have any more */