Module Name: src
Committed By: joerg
Date: Tue Jan 7 09:28:57 UTC 2014
Modified Files:
src/external/bsd/tmux/dist: log.c
Log Message:
Fix build with GCC 4.5.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/tmux/dist/log.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/tmux/dist/log.c
diff -u src/external/bsd/tmux/dist/log.c:1.3 src/external/bsd/tmux/dist/log.c:1.4
--- src/external/bsd/tmux/dist/log.c:1.3 Tue Jan 7 02:11:29 2014
+++ src/external/bsd/tmux/dist/log.c Tue Jan 7 09:28:57 2014
@@ -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 <[email protected]>
@@ -105,7 +105,9 @@ log_vwrite(int pri, const char *msg, va_
}
/* 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 @@ log_warn(const char *msg, ...)
free(fmt);
va_end(ap);
}
+#if __GNUC_PREREQ__(4, 6) || defined(__clang__)
#pragma GCC diagnostic push
+#endif
/* Log a warning. */
void printflike1