comparison src/main.c @ 18139:59bc3cd42cf5 v8.1.2064

patch 8.1.2064: MS-Windows: compiler warnings for unused arguments Commit: https://github.com/vim/vim/commit/bd67aac279adf3a1cfa11557229b44e4c2c3dcda Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 21 23:09:04 2019 +0200 patch 8.1.2064: MS-Windows: compiler warnings for unused arguments Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4963)
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 Sep 2019 23:15:03 +0200
parents 1868ec23360e
children 770987511384
comparison
equal deleted inserted replaced
18138:28c9188517bc 18139:59bc3cd42cf5
3656 # ifdef MSWIN 3656 # ifdef MSWIN
3657 /* 3657 /*
3658 * Windows doesn't have gettimeofday(), although it does have struct timeval. 3658 * Windows doesn't have gettimeofday(), although it does have struct timeval.
3659 */ 3659 */
3660 static int 3660 static int
3661 gettimeofday(struct timeval *tv, char *dummy) 3661 gettimeofday(struct timeval *tv, char *dummy UNUSED)
3662 { 3662 {
3663 long t = clock(); 3663 long t = clock();
3664 tv->tv_sec = t / CLOCKS_PER_SEC; 3664 tv->tv_sec = t / CLOCKS_PER_SEC;
3665 tv->tv_usec = (t - tv->tv_sec * CLOCKS_PER_SEC) * 1000000 / CLOCKS_PER_SEC; 3665 tv->tv_usec = (t - tv->tv_sec * CLOCKS_PER_SEC) * 1000000 / CLOCKS_PER_SEC;
3666 return 0; 3666 return 0;