Mercurial > vim
comparison src/evalfunc.c @ 15444:b6224857db6f v8.1.0730
patch 8.1.0730: compiler warning for get_buf_arg() unused
commit https://github.com/vim/vim/commit/ec9d3001cf6fb4ffe142d34762c774e0066de6bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 12 13:50:31 2019 +0100
patch 8.1.0730: compiler warning for get_buf_arg() unused
Problem: Compiler warning for get_buf_arg() unused.
Solution: Add #ifdef. (John Marriott)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Jan 2019 14:00:04 +0100 |
parents | b55b89692fd2 |
children | 1d2b5c016f17 |
comparison
equal
deleted
inserted
replaced
15443:c36361e6f206 | 15444:b6224857db6f |
---|---|
1917 buf = find_buffer(tv); | 1917 buf = find_buffer(tv); |
1918 | 1918 |
1919 return buf; | 1919 return buf; |
1920 } | 1920 } |
1921 | 1921 |
1922 #ifdef FEAT_SIGNS | |
1922 /* | 1923 /* |
1923 * Get the buffer from "arg" and give an error and return NULL if it is not | 1924 * Get the buffer from "arg" and give an error and return NULL if it is not |
1924 * valid. | 1925 * valid. |
1925 */ | 1926 */ |
1926 static buf_T * | 1927 static buf_T * |
1933 --emsg_off; | 1934 --emsg_off; |
1934 if (buf == NULL) | 1935 if (buf == NULL) |
1935 EMSG2(_("E158: Invalid buffer name: %s"), tv_get_string(arg)); | 1936 EMSG2(_("E158: Invalid buffer name: %s"), tv_get_string(arg)); |
1936 return buf; | 1937 return buf; |
1937 } | 1938 } |
1939 #endif | |
1938 | 1940 |
1939 /* | 1941 /* |
1940 * "bufname(expr)" function | 1942 * "bufname(expr)" function |
1941 */ | 1943 */ |
1942 static void | 1944 static void |