comparison src/xdiff/xinclude.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 d5142d87f898
children
comparison
equal deleted inserted replaced
29104:c58baa6d6dda 29105:faf7fcd1c8d5
31 # endif 31 # endif
32 #endif 32 #endif
33 33
34 // Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter 34 // Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter
35 // can be used to check for mistakes. 35 // can be used to check for mistakes.
36 #ifdef HAVE_ATTRIBUTE_UNUSED 36 #if defined(HAVE_ATTRIBUTE_UNUSED) || defined(__MINGW32__)
37 # define UNUSED __attribute__((unused)) 37 # define UNUSED __attribute__((unused))
38 #else 38 #else
39 # define UNUSED 39 # define UNUSED
40 #endif 40 #endif
41 41