Mercurial > vim
comparison src/libvterm/src/vterm_internal.h @ 29105:faf7fcd1c8d5 v8.2.5073
patch 8.2.5073: clang on MS-Windows produces warnings
Commit: https://github.com/vim/vim/commit/35d7a2fb13fc833aa1b654ca6fd6e429e72e6b49
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 9 20:53:54 2022 +0100
patch 8.2.5073: clang on MS-Windows produces warnings
Problem: Clang on MS-Windows produces warnings.
Solution: Avoid the warnings. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/10546)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Jun 2022 22:00:07 +0200 |
parents | f93337ae0612 |
children | 2d2758ffd959 |
comparison
equal
deleted
inserted
replaced
29104:c58baa6d6dda | 29105:faf7fcd1c8d5 |
---|---|
5 | 5 |
6 #include <stdarg.h> | 6 #include <stdarg.h> |
7 | 7 |
8 #if defined(__GNUC__) && !defined(__MINGW32__) | 8 #if defined(__GNUC__) && !defined(__MINGW32__) |
9 # define INTERNAL __attribute__((visibility("internal"))) | 9 # define INTERNAL __attribute__((visibility("internal"))) |
10 #else | |
11 # define INTERNAL | |
12 #endif | |
13 | |
14 #if defined(__GNUC__) || defined(__MINGW32__) | |
10 # define UNUSED __attribute__((unused)) | 15 # define UNUSED __attribute__((unused)) |
11 #else | 16 #else |
12 # define INTERNAL | |
13 # define UNUSED | 17 # define UNUSED |
14 #endif | 18 #endif |
15 | 19 |
16 #ifdef DEBUG | 20 #ifdef DEBUG |
17 # define DEBUG_LOG(s) fprintf(stderr, s) | 21 # define DEBUG_LOG(s) fprintf(stderr, s) |