diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-10 19:27:09 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-10 19:27:09 +0100 |
commit | e6ee3e9504e0abc9014e1b20ac6a9c43dd6145fb (patch) | |
tree | e768698a6eb634119d7d3de69f21ea12f657e82a | |
parent | 1c1ec84aa3362bd9d87f32a7afa6d07017adccfc (diff) | |
download | rtmux-e6ee3e9504e0abc9014e1b20ac6a9c43dd6145fb.tar.gz rtmux-e6ee3e9504e0abc9014e1b20ac6a9c43dd6145fb.tar.bz2 rtmux-e6ee3e9504e0abc9014e1b20ac6a9c43dd6145fb.zip |
Warning fixes from Carlo Marcelo Arenas Belón.
-rw-r--r-- | cmd-respawn-pane.c | 1 | ||||
-rw-r--r-- | osdep-darwin.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cmd-respawn-pane.c b/cmd-respawn-pane.c index df234cd3..44234315 100644 --- a/cmd-respawn-pane.c +++ b/cmd-respawn-pane.c @@ -52,7 +52,6 @@ cmd_respawn_pane_exec(struct cmd *self, struct cmdq_item *item) struct session *s = item->target.s; struct winlink *wl = item->target.wl; struct window_pane *wp = item->target.wp; - struct client *c = cmd_find_client(item, NULL, 1); char *cause = NULL; memset(&sc, 0, sizeof sc); diff --git a/osdep-darwin.c b/osdep-darwin.c index 5d69cdda..d4a88028 100644 --- a/osdep-darwin.c +++ b/osdep-darwin.c @@ -30,7 +30,9 @@ char *osdep_get_name(int, char *); char *osdep_get_cwd(int); struct event_base *osdep_event_init(void); +#ifndef __unused #define __unused __attribute__ ((__unused__)) +#endif char * osdep_get_name(int fd, __unused char *tty) @@ -47,6 +49,7 @@ osdep_get_name(int fd, __unused char *tty) &bsdinfo, sizeof bsdinfo); if (ret == sizeof bsdinfo && *bsdinfo.pbsi_comm != '\0') return (strdup(bsdinfo.pbsi_comm)); + return (NULL); #else int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, 0 }; size_t size; |