Skip to content

Commit

Permalink
Fix warning: 'noreturn' function does return (modelica#4286)
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jan 29, 2024
1 parent d156b9b commit 7ac7906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .CI/Test/Common.c
Expand Up @@ -44,7 +44,7 @@ void ModelicaWarning(const char *string) {
void ModelicaError(const char *string) {
fputs(string, stderr);
fputc('\n', stderr);
assert(0);
abort();
}

void ModelicaFormatMessage(const char *string, ...) {
Expand Down Expand Up @@ -78,5 +78,5 @@ void ModelicaVFormatWarning(const char *string, va_list args) {

void ModelicaVFormatError(const char *string, va_list args) {
vfprintf(stderr, string, args);
assert(0);
abort();
}

0 comments on commit 7ac7906

Please sign in to comment.