Skip to content
Discussion options

You must be logged in to vote

Hello felipefl142,

Thanks for your feedback.
Yes, both the errors you mentioned will be fixed if you use C99 or a newer standard. I hope your development environment supports the newer C standard. I strongly advise you to switch to a newer C standard.

If you are not able to use C99 or a newer standard, then

  1. Disable variable-length array
    You can disable VLA by defining HSM_USE_VARIABLE_LENGTH_ARRAY to 0. then you need to also define MAX_HIERARCHICAL_LEVEL.
    MAX_HIERARCHICAL_LEVEL should be the highest hierarchical nesting level among all the state machines in your project. This is explained in my readme file.
    https://github.com/kiishor/UML-State-Machine-in-C#disable-variable-length-array

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@felipefl142
Comment options

@kmilo17pet
Comment options

@kiishor
Comment options

@felipefl142
Comment options

@felipefl142
Comment options

Answer selected by kiishor
Comment options

You must be logged in to vote
1 reply
@kiishor
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants