Description: Fix compile of the TEST programs with Gcc-15
 Gcc-15 turned -Wincompatible-pointer-types into a hard error. The TEST
 programs pass CIMC objects (CIMCData.value/CIMCClass) to helper functions
 that take CMPI types (value2Chars/showClass). CIMC and CMPI types are
 layout-identical twins (same object model), and the codebase already
 casts between them (see v2test_gc.c/v2test_im.c), so add the same
 explicit casts.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-09-14

--- sblim-sfcc-2.2.8.orig/TEST/show.c
+++ sblim-sfcc-2.2.8/TEST/show.c
@@ -90,7 +90,7 @@ void showCObjectPath( CIMCObjectPath * o
             CIMCData data = objectpath->ft->getKeyAt(objectpath, i,
                                                      &keyname, NULL);
             printf("\t%s=%s\n", (char *)keyname->hdl,
-                   cv=value2Chars(data.type, &data.value));
+                   cv=value2Chars((CMPIType)data.type, (CMPIValue *)&data.value));
 	 if(cv) free(cv);
 	 if(keyname) CMRelease(keyname);
       }
--- sblim-sfcc-2.2.8.orig/TEST/v2test_ec.c
+++ sblim-sfcc-2.2.8/TEST/v2test_ec.c
@@ -82,7 +82,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
            */

