comparison src/cindent.c @ 28497:7c4a9e20c178 v8.2.4773

patch 8.2.4773: build failure without the +eval feature Commit: https://github.com/vim/vim/commit/a9549c9e8f368a7fa1dcbe14ec23e82c6a0b8715 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 17 14:18:11 2022 +0100 patch 8.2.4773: build failure without the +eval feature Problem: Build failure without the +eval feature. Solution: Use other error message. Avoid warnings.
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Apr 2022 15:30:06 +0200
parents f1a3df11d013
children d770568e6c98
comparison
equal deleted inserted replaced
28496:bf19917b91ab 28497:7c4a9e20c178
418 // "::" is not a label, it's C++ 418 // "::" is not a label, it's C++
419 return (**s == ':' && *++*s != ':'); 419 return (**s == ':' && *++*s != ':');
420 } 420 }
421 421
422 /* 422 /*
423 * Recognize a "public/private/protected" scope declaration label. 423 * Recognize a scope declaration label from the 'cinscopedecls' option.
424 */ 424 */
425 static int 425 static int
426 cin_isscopedecl(char_u *p) 426 cin_isscopedecl(char_u *p)
427 { 427 {
428 size_t cinsd_len; 428 size_t cinsd_len;
438 if (cinsd_buf == NULL) 438 if (cinsd_buf == NULL)
439 return FALSE; 439 return FALSE;
440 440
441 for (cinsd = curbuf->b_p_cinsd; *cinsd; ) 441 for (cinsd = curbuf->b_p_cinsd; *cinsd; )
442 { 442 {
443 len = copy_option_part(&cinsd, cinsd_buf, cinsd_len, ","); 443 len = copy_option_part(&cinsd, cinsd_buf, (int)cinsd_len, ",");
444 if (STRNCMP(s, cinsd_buf, len) == 0) 444 if (STRNCMP(s, cinsd_buf, len) == 0)
445 { 445 {
446 skip = cin_skipcomment(s + len); 446 skip = cin_skipcomment(s + len);
447 if (*skip == ':' && skip[1] != ':') 447 if (*skip == ':' && skip[1] != ':')
448 { 448 {