aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-09-10 15:03:18 +0000
committernicm <nicm>2021-09-10 15:03:18 +0000
commite6b40cb339e06b9084a9139a75d62fb7a6005448 (patch)
treee0e6cd3ef57721d1bf93fc4ab7d178019c76f6ad /tmux.h
parent33ac7a346e9134e27d26c88fc0693f16b1c55deb (diff)
downloadrtmux-e6b40cb339e06b9084a9139a75d62fb7a6005448.tar.gz
rtmux-e6b40cb339e06b9084a9139a75d62fb7a6005448.tar.bz2
rtmux-e6b40cb339e06b9084a9139a75d62fb7a6005448.zip
Do fatal/fatalx a different way so the compiler trick to avoid warnings
becomes unnecessary, prompted by theo.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/tmux.h b/tmux.h
index 6c7cf046..7a77cdae 100644
--- a/tmux.h
+++ b/tmux.h
@@ -93,20 +93,6 @@ struct winlink;
#define DEFAULT_XPIXEL 16
#define DEFAULT_YPIXEL 32
-/* Don't complain about format arguments. */
-#if __clang__ || __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
-#define no_format_nonliteral(x) do { \
- _Pragma ("GCC diagnostic push") \
- _Pragma ("GCC diagnostic ignored \"-Wformat-nonliteral\"") \
- x; \
- _Pragma ("GCC diagnostic pop") \
-} while (0)
-#else
-#define no_format_nonliteral(x) do { \
- x; \
-} while (0)
-#endif
-
/* Attribute to make GCC check printf-like arguments. */
#define printflike(a, b) __attribute__ ((format (printf, a, b)))