document/fix non-literal format strings.
This commit is contained in:
parent
3ca3bc9b9b
commit
73d3221b0e
|
@ -1,4 +1,4 @@
|
|||
/* $Id: cmd-display-message.c,v 1.1.1.2 2011/08/17 18:40:04 jmmv Exp $ */
|
||||
/* $Id: cmd-display-message.c,v 1.2 2011/08/19 09:06:05 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
|
||||
|
@ -63,7 +63,7 @@ cmd_display_message_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||
}
|
||||
|
||||
if (args->argc == 0)
|
||||
template = "[#S] #I:#W, current pane #P - (%H:%M %d-%b-%y)";
|
||||
template = "[#S] #I:#W, current pane #P - (%H:%M %d-%b-%Y)";
|
||||
else
|
||||
template = args->argv[0];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: tmux.h,v 1.1.1.2 2011/08/17 18:40:06 jmmv Exp $ */
|
||||
/* $Id: tmux.h,v 1.2 2011/08/19 09:06:05 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
|
@ -1696,7 +1696,8 @@ void status_update_jobs(struct client *);
|
|||
void status_set_window_at(struct client *, u_int);
|
||||
int status_redraw(struct client *);
|
||||
char *status_replace(struct client *, struct session *,
|
||||
struct winlink *, struct window_pane *, const char *, time_t, int);
|
||||
struct winlink *, struct window_pane *, const char *, time_t, int)
|
||||
__attribute__((__format__(__strftime__, 5, 0)));
|
||||
void printflike2 status_message_set(struct client *, const char *, ...);
|
||||
void status_message_clear(struct client *);
|
||||
int status_message_redraw(struct client *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.7 2011/08/18 19:05:54 jmmv Exp $
|
||||
# $NetBSD: Makefile,v 1.8 2011/08/19 09:06:05 christos Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
|
@ -209,4 +209,9 @@ CPPFLAGS+= -DHAVE_DIRFD=1
|
|||
LDADD+= -levent -lterminfo -lutil -lm
|
||||
DPADD+= ${LIBEVENT} ${LIBTERMINFO} ${LIBUTIL}
|
||||
|
||||
COPTS.cmd-display-message.c += -Wno-format-nonliteral
|
||||
COPTS.cmd-pipe-pane.c += -Wno-format-nonliteral
|
||||
COPTS.server-client.c += -Wno-format-nonliteral
|
||||
COPTS.status.c += -Wno-format-nonliteral
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
Loading…
Reference in New Issue