mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	PVS/V501: diff.c: silence warning
False positive: vim_fgets has side effects.
ref 8586770e1f
			
			
This commit is contained in:
		| @@ -1541,7 +1541,7 @@ static void diff_read(int idx_orig, int idx_new, diffout_T *dout) | |||||||
|         diffstyle = DIFF_ED; |         diffstyle = DIFF_ED; | ||||||
|       } else if ((STRNCMP(line, "@@ ", 3) == 0)) { |       } else if ((STRNCMP(line, "@@ ", 3) == 0)) { | ||||||
|         diffstyle = DIFF_UNIFIED; |         diffstyle = DIFF_UNIFIED; | ||||||
|       } else if ((STRNCMP(line, "--- ", 4) == 0) |       } else if ((STRNCMP(line, "--- ", 4) == 0)  // -V501 | ||||||
|                  && (vim_fgets(linebuf, LBUFLEN, fd) == 0)  // -V501 |                  && (vim_fgets(linebuf, LBUFLEN, fd) == 0)  // -V501 | ||||||
|                  && (STRNCMP(line, "+++ ", 4) == 0) |                  && (STRNCMP(line, "+++ ", 4) == 0) | ||||||
|                  && (vim_fgets(linebuf, LBUFLEN, fd) == 0)  // -V501 |                  && (vim_fgets(linebuf, LBUFLEN, fd) == 0)  // -V501 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes