On Sun, 17 May 2015 04:12:59 +0100, Thomas Adam wrote:
> +AM_SILENT_RULES([yes])

This works beautifully!  gcc 4.9.2 warnings are plain to see now:

client.c: In function ‘client_dispatch_attached’:
client.c:712:4: warning: ignoring return value of ‘system’, declared
with attribute warn_unused_result [-Wunused-result] system(data);
    ^
cmd-display-message.c: In function ‘cmd_display_message_exec’:
cmd-display-message.c:98:2: warning: format not a string literal,
format string not checked [-Wformat-nonliteral] len = strftime(out,
sizeof out, template, localtime(&t)); ^
format.c: In function ‘format_expand_time’:
format.c:350:2: warning: format not a string literal, format string not
checked [-Wformat-nonliteral] } while (strftime(tmp, tmplen, fmt, tm)
== 0); ^
input.c: In function ‘input_reply’:
input.c:960:2: warning: ignoring return value of ‘vasprintf’, declared
with attribute warn_unused_result [-Wunused-result] vasprintf(&reply,
fmt, ap); ^
job.c: In function ‘job_run’:
job.c:70:4: warning: ignoring return value of ‘chdir’, declared with
attribute warn_unused_result [-Wunused-result] chdir("/");
    ^
status.c: In function ‘status_replace’:
status.c:450:2: warning: format not a string literal, format string not
checked [-Wformat-nonliteral] len = strftime(in, sizeof in, fmt,
localtime(&t)); ^
tty.c: In function ‘tty_puts’:
tty.c:416:3: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result [-Wunused-result] write(tty->log_fd, s,
strlen(s)); ^
tty.c: In function ‘tty_putc’:
tty.c:448:3: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result [-Wunused-result] write(tty->log_fd, &ch,
1); ^
tty.c: In function ‘tty_putn’:
tty.c:456:3: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result [-Wunused-result] write(tty->log_fd, buf,
len); ^
window.c: In function ‘window_pane_spawn’:
window.c:822:4: warning: ignoring return value of ‘chdir’, declared
with attribute warn_unused_result [-Wunused-result] chdir("/");
    ^
compat/imsg-buffer.c: In function ‘msgbuf_write’:
compat/imsg-buffer.c:258:3: warning: dereferencing type-punned pointer
will break strict-aliasing rules [-Wstrict-aliasing] *(int *)CMSG_DATA
(cmsg) = buf->fd; ^
compat/getopt.c: In function ‘BSDgetopt’:
compat/getopt.c:97:14: warning: assignment discards ‘const’ qualifier
from pointer target type BSDoptarg = place;
              ^

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to