*/
 static size_t mfd_def_size = MFD_DEF_SIZE;
 static const char *memfd_str = MEMFD_STR;
-static int newpid_thread_fn2(void *arg);
-static void join_newpid_thread(pid_t pid);
 
 static ssize_t fd2name(int fd, char *buf, size_t bufsize)
 {
 static void mfd_assert_has_seals(int fd, unsigned int seals)
 {
        char buf[PATH_MAX];
-       int nbytes;
        unsigned int s;
        fd2name(fd, buf, PATH_MAX);
 
 {
        struct stat st;
        char buf[PATH_MAX];
-       int nbytes;
 
        fd2name(fd, buf, PATH_MAX);
 
 static void mfd_assert_chmod(int fd, int mode)
 {
        char buf[PATH_MAX];
-       int nbytes;
 
        fd2name(fd, buf, PATH_MAX);
 
 {
        struct stat st;
        char buf[PATH_MAX];
-       int nbytes;
 
        fd2name(fd, buf, PATH_MAX);
 
 
 static int sysctl_simple_child(void *arg)
 {
-       int fd;
-       int pid;
-
        printf("%s sysctl 0\n", memfd_str);
        test_sysctl_set_sysctl0();
 
 
 static int sysctl_nested_child(void *arg)
 {
-       int fd;
        int pid;
 
        printf("%s nested sysctl 0\n", memfd_str);