Skip to content

Commit

Permalink
Declare functions as dead
Browse files Browse the repository at this point in the history
  • Loading branch information
mptre committed Jul 4, 2017
1 parent 7fafd38 commit 0fa687e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/pick-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
#include <string.h>
#include <unistd.h>

static void child(int, int);
static void parent(int, int, const char *);
static char *parsekeys(const char *);
static void sighandler(int);
static void usage(void);
#include "compat.h"

__dead static void child(int, int);
static void parent(int, int, const char *);
static char *parsekeys(const char *);
static void sighandler(int);
__dead static void usage(void);

static char **pickargv;
/*
Expand Down Expand Up @@ -88,7 +90,7 @@ main(int argc, char *argv[])
return 0;
}

static void
__dead static void
usage(void)
{
fprintf(stderr, "usage: pick-test [-k keys] [-- argument ...]\n");
Expand Down Expand Up @@ -139,7 +141,7 @@ sighandler(int sig)
gotsig = sig == SIGCHLD;
}

static void
__dead static void
child(int master, int slave)
{
const char **env;
Expand Down

0 comments on commit 0fa687e

Please sign in to comment.