Skip to content

Commit abced6f

Browse files
committed
- Avoid clang warnings and segmentation faults (see r10238)
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10240 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent e50520c commit abced6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c_runtime/meta/meta_modelica.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ struct mmc_header {
167167

168168
struct mmc_struct {
169169
mmc_uint_t header; /* MMC_STRUCTHDR(slots,ctor) */
170-
void **data; /* `slots' elements */
170+
void *data[]; /* `slots' elements */
171171
};
172172

173173
struct mmc_cons_struct {
174174
mmc_uint_t header; /* MMC_STRUCTHDR(slots,ctor) */
175-
void **data; /* `slots' elements */
175+
void *data[]; /* `slots' elements */
176176
};
177177

178178
struct mmc_real {

0 commit comments

Comments
 (0)