Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/tmux/dist Fix build with GCC 4.5.
details: https://anonhg.NetBSD.org/src/rev/d85550f255ab
branches: trunk
changeset: 325815:d85550f255ab
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jan 07 09:28:57 2014 +0000
description:
Fix build with GCC 4.5.
diffstat:
external/bsd/tmux/dist/log.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r add975214284 -r d85550f255ab external/bsd/tmux/dist/log.c
--- a/external/bsd/tmux/dist/log.c Tue Jan 07 07:59:03 2014 +0000
+++ b/external/bsd/tmux/dist/log.c Tue Jan 07 09:28:57 2014 +0000
@@ -1,4 +1,4 @@
-/* $Id: log.c,v 1.3 2014/01/07 02:11:29 joerg Exp $ */
+/* $Id: log.c,v 1.4 2014/01/07 09:28:57 joerg Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm%users.sourceforge.net@localhost>
@@ -105,7 +105,9 @@
}
/* Log a warning with error string. */
+#if __GNUC_PREREQ__(4, 6) || defined(__clang__)
#pragma GCC diagnostic push
+#endif
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
void printflike1
log_warn(const char *msg, ...)
@@ -120,7 +122,9 @@
free(fmt);
va_end(ap);
}
+#if __GNUC_PREREQ__(4, 6) || defined(__clang__)
#pragma GCC diagnostic push
+#endif
/* Log a warning. */
void printflike1
Home |
Main Index |
Thread Index |
Old Index