fix clang 3.6 compiler warnings
patch 01: -Wundef
patch 02: -Wunused-function
patch 03: -Wnon-literal-null-conversion
patch 04: -Wmissing-field-initializers
patch 05: -Wabsolute-value
patch 06: -Wtautological-pointer-compare
patch 07: -Wformat
edit.c:700:13: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
editcmd.c:2350:21: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
Signed-off-by: Andreas Mohr <and@gmx.li>
a
|
b
|
|
697 | 697 | { |
698 | 698 | long n; |
699 | 699 | |
700 | | n = abs (edit->line_numbers[i] - line); |
| 700 | n = labs (edit->line_numbers[i] - line); |
701 | 701 | if (n < m) |
702 | 702 | { |
703 | 703 | m = n; |