commit 7a61761f598f1d4347c2e359e1733bb0aa109ab3 from: Christian Weisgerber via: Thomas Adam date: Fri Aug 12 06:27:29 2022 UTC fix unused variable, function definition warnings for clang 15 commit - c24a47af52b39b747392e71487cf59ca2ce4cdb8 commit + 7a61761f598f1d4347c2e359e1733bb0aa109ab3 blob - edbcc7342bcb01d006c2e0688e8f5674d0e891b7 blob + 0a75e4510c09141eba3ee6efeb75cd8de0177b7f --- got/got.c +++ got/got.c @@ -8901,7 +8901,7 @@ cmd_send(int argc, char *argv[]) char *proto = NULL, *host = NULL, *port = NULL; char *repo_name = NULL, *server_path = NULL; const struct got_remote_repo *remotes, *remote = NULL; - int nremotes, nbranches = 0, ntags = 0, ndelete_branches = 0; + int nremotes, nbranches = 0, ndelete_branches = 0; struct got_repository *repo = NULL; struct got_worktree *worktree = NULL; const struct got_gotconfig *repo_conf = NULL, *worktree_conf = NULL; @@ -8958,7 +8958,6 @@ cmd_send(int argc, char *argv[]) error = got_pathlist_append(&tags, optarg, NULL); if (error) return error; - ntags++; break; case 'T': send_all_tags = 1; @@ -9135,7 +9134,6 @@ cmd_send(int argc, char *argv[]) tagname, NULL); if (error) goto done; - ntags++; } } blob - bd881b3a8d3258eb89eb6658259779307c9087d8 blob + 3f930a7220e7a5403eeafb5e3c5ceaee7636551f --- lib/sigs.c +++ lib/sigs.c @@ -55,7 +55,7 @@ #endif const struct got_error * -got_sigs_apply_unveil() +got_sigs_apply_unveil(void) { if (unveil(GOT_TAG_PATH_SSH_KEYGEN, "x") != 0) { return got_error_from_errno2("unveil",