Skip to content

Commit

Permalink
Fix -Wmissing-noreturn with clang11 (#55)
Browse files Browse the repository at this point in the history
As per title, fixes:

```
src/freeradius-devel/util/acutest.h:409:1: warning: function 'test_exit_' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
1 warning generated.
```
  • Loading branch information
arr2036 authored Jan 16, 2021
1 parent b244152 commit 186bf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/acutest.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ test_cleanup_(void)
free((void*) test_details_);
}

static void
static void TEST_ATTRIBUTE_(noreturn)
test_exit_(int exit_code)
{
test_cleanup_();
Expand Down

0 comments on commit 186bf1b

Please sign in to comment.