Skip to content

Commit

Permalink
Add no return attributes to disable warnings. (#8182)
Browse files Browse the repository at this point in the history
  - The assigned error functions should match the declared signature.

  - This was causing a warning on generated code for simulations.

  - I am not sure if `noreturn` is needed on this functions at all though.
  • Loading branch information
mahge committed Nov 21, 2021
1 parent 7e00424 commit aef8258
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -43,9 +43,9 @@ void omc_assert_simulation_withEquationIndexes(threadData_t *threadData, FILE_IN

void omc_assert_warning_simulation_withEquationIndexes(FILE_INFO info, const int *indexes, const char *msg, ...);

void omc_assert_simulation(threadData_t *threadData, FILE_INFO info, const char *msg, ...);
void omc_assert_simulation(threadData_t *threadData, FILE_INFO info, const char *msg, ...) __attribute__ ((noreturn));
void omc_terminate_simulation(FILE_INFO info, const char *msg, ...);
void omc_throw_simulation(threadData_t* threadData);
void omc_throw_simulation(threadData_t* threadData) __attribute__ ((noreturn));
void omc_assert_warning_simulation(FILE_INFO info, const char *msg, ...);

#endif // Header

0 comments on commit aef8258

Please sign in to comment.