Changeset aef8258 in OpenModelica


Ignore:
Timestamp:
2021-11-21T12:39:45+01:00 (2 years ago)
Author:
GitHub <noreply@…>
Branches:
Added-citation-metadata, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, master, omlib-staging
Children:
856c29ae, b8d2bbf7
Parents:
7e004242
git-author:
Mahder Gebremedhin <mahge@…> (11/21/21 12:39:45)
git-committer:
GitHub <noreply@…> (11/21/21 12:39:45)
Message:

Add no return attributes to disable warnings. (#8182)

  • 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/SimulationRuntime/c/simulation/simulation_omc_assert.h

    raf03d959 raef8258  
    4444void omc_assert_warning_simulation_withEquationIndexes(FILE_INFO info, const int *indexes, const char *msg, ...);
    4545
    46 void omc_assert_simulation(threadData_t *threadData, FILE_INFO info, const char *msg, ...);
     46void omc_assert_simulation(threadData_t *threadData, FILE_INFO info, const char *msg, ...) __attribute__ ((noreturn));
    4747void omc_terminate_simulation(FILE_INFO info, const char *msg, ...);
    48 void omc_throw_simulation(threadData_t* threadData);
     48void omc_throw_simulation(threadData_t* threadData) __attribute__ ((noreturn));
    4949void omc_assert_warning_simulation(FILE_INFO info, const char *msg, ...);
    5050
Note: See TracChangeset for help on using the changeset viewer.