comparison src/os_win32.c @ 29113:495d55210aac v8.2.5077

patch 8.2.5077: various warnings from clang on MS-Windows Commit: https://github.com/vim/vim/commit/a34b4460c2843c67a35a2d236b01e6cb9bc38734 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Jun 11 10:43:26 2022 +0100 patch 8.2.5077: various warnings from clang on MS-Windows Problem: Various warnings from clang on MS-Windows. Solution: Avoid the warnings. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/10553)
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 Jun 2022 11:45:04 +0200
parents faf7fcd1c8d5
children 35a30cb18005
comparison
equal deleted inserted replaced
29112:a8ee24a8bde1 29113:495d55210aac
2353 * down the source of a problem, but in non-debug builds the arguments are all 2353 * down the source of a problem, but in non-debug builds the arguments are all
2354 * NULL/0. Debug builds will also produce assert dialogs from the CRT, it is 2354 * NULL/0. Debug builds will also produce assert dialogs from the CRT, it is
2355 * worth allowing these to make debugging of issues easier. 2355 * worth allowing these to make debugging of issues easier.
2356 */ 2356 */
2357 static void 2357 static void
2358 bad_param_handler(const wchar_t *expression, 2358 bad_param_handler(const wchar_t *expression UNUSED,
2359 const wchar_t *function, 2359 const wchar_t *function UNUSED,
2360 const wchar_t *file, 2360 const wchar_t *file UNUSED,
2361 unsigned int line, 2361 unsigned int line UNUSED,
2362 uintptr_t pReserved) 2362 uintptr_t pReserved UNUSED)
2363 { 2363 {
2364 } 2364 }
2365 2365
2366 # define SET_INVALID_PARAM_HANDLER \ 2366 # define SET_INVALID_PARAM_HANDLER \
2367 ((void)_set_invalid_parameter_handler(bad_param_handler)) 2367 ((void)_set_invalid_parameter_handler(bad_param_handler))