From: Konrad R. <kon...@us...> - 2005-03-22 20:07:48
|
Update of /cvsroot/sblim/indication_helper/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19813 Modified Files: Test_regProperties.c Log Message: BUG: 1168609 TITLE:compiler barfs about strict-aliasing for indication_helper Index: Test_regProperties.c =================================================================== RCS file: /cvsroot/sblim/indication_helper/test/Test_regProperties.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- Test_regProperties.c 2 Feb 2005 19:06:51 -0000 1.1.1.1 +++ Test_regProperties.c 22 Mar 2005 20:07:04 -0000 1.2 @@ -37,7 +37,8 @@ int i; char temp[MAX]; char *pn[NR]; - void *data[NR]; + + IndErrorT (*data[NR]) (CMPIData *); if (getenv("DEBUG")) debug = 1; @@ -59,13 +60,13 @@ assert ( IND_INVALID_ARGS == ind_set_properties_f("", CLASS, pn, - (IndErrorT (**) (CMPIData *))&data, + data, NR)); assert ( IND_OK == ind_set_properties_f(NAMESPACE, CLASS, pn, - (IndErrorT (**) (CMPIData *))&data, + data, NR)); /* Try to unregister class in a wrong namespace */ |