view runtime/tools/mve.awk @ 18446:b026f4524f25 v8.1.2217

patch 8.1.2217: compiler warning for unused variable Commit: https://github.com/vim/vim/commit/c7488a7fc8ed0d4fd9cc440117ff848170321517 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 26 12:23:04 2019 +0200 patch 8.1.2217: compiler warning for unused variable Problem: Compiler warning for unused variable. Solution: Move variable inside #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Oct 2019 12:30:06 +0200
parents 3fc0f57ecb91
children
line wrap: on
line source

#!/usr/bin/nawk -f
#
# Change "nawk" to "awk" or "gawk" if you get errors.
#
# Make Vim Errors
# Processes errors from cc for use by Vim's quick fix tools
# specifically it translates the ---------^ notation to a
# column number
#
BEGIN { FS="[:,]" }

/^cfe/ { file=$3
	 msg=$5
	 split($4,s," ")
	 line=s[2]
}

# You may have to substitute a tab character for the \t here:
/^[\t-]*\^/ {
	p=match($0, ".*\\^" )
	col=RLENGTH-2
	printf("%s, line %d, col %d : %s\n", file,line,col,msg)
}