Skip to content

Commit

Permalink
fix: Change the vmlist attribute from array to pointer
Browse files Browse the repository at this point in the history
Pedantic C does not allow for the initialization of flexible array members.
The presented solution follows the same pattern as other attributes in structs
used in the configuration (e.g., shmemlist or regions).

Signed-off-by: Miguel Silva <[email protected]>
  • Loading branch information
miguelafsilva5 authored and josecm committed May 22, 2024
1 parent 6935959 commit 2a7e9c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/inc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ extern struct config {
size_t vmlist_size;

/* Array list with VM configuration */
struct vm_config vmlist[];
struct vm_config* vmlist;

} config;

Expand Down

0 comments on commit 2a7e9c1

Please sign in to comment.