summaryrefslogtreecommitdiff
path: root/src/libvterm
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-09 20:53:54 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-09 20:53:54 +0100
commit35d7a2fb13fc833aa1b654ca6fd6e429e72e6b49 (patch)
tree257dbf4040c59cf01a5072d35f0c9e5264bba09d /src/libvterm
parent63f32603789d1a27c559fc440325955fd0b8b500 (diff)
downloadvim-git-35d7a2fb13fc833aa1b654ca6fd6e429e72e6b49.tar.gz
patch 8.2.5073: clang on MS-Windows produces warningsv8.2.5073
Problem: Clang on MS-Windows produces warnings. Solution: Avoid the warnings. (Yegappan Lakshmanan, closes #10546)
Diffstat (limited to 'src/libvterm')
-rw-r--r--src/libvterm/src/vterm_internal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libvterm/src/vterm_internal.h b/src/libvterm/src/vterm_internal.h
index c4e408a37..23f54b92e 100644
--- a/src/libvterm/src/vterm_internal.h
+++ b/src/libvterm/src/vterm_internal.h
@@ -7,9 +7,13 @@
#if defined(__GNUC__) && !defined(__MINGW32__)
# define INTERNAL __attribute__((visibility("internal")))
-# define UNUSED __attribute__((unused))
#else
# define INTERNAL
+#endif
+
+#if defined(__GNUC__) || defined(__MINGW32__)
+# define UNUSED __attribute__((unused))
+#else
# define UNUSED
#endif