Skip to content

Commit

Permalink
Merge pull request #183 from cgwalters/annotate-noreturn
Browse files Browse the repository at this point in the history
Use `noreturn` attribute for `printexit`
  • Loading branch information
alexlarsson committed Sep 1, 2023
2 parents a6e2770 + c5def3d commit d085fbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/cfs-fuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ uint64_t erofs_build_time;
uint32_t erofs_build_time_nsec;
int basedir_fd;

static void printexit(const char *format, ...) __attribute__((noreturn));
static void printexit(const char *format, ...)
{
va_list args;
Expand Down
1 change: 1 addition & 0 deletions tools/mountcomposefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

#include "libcomposefs/lcfs-mount.h"

static void printexit(const char *format, ...) __attribute__((noreturn));
static void printexit(const char *format, ...)
{
va_list args;
Expand Down

0 comments on commit d085fbf

Please sign in to comment.