From b84d93ce6db52805a8816412e4bf93d22f078e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 6 Jan 2015 14:05:17 +0100 Subject: Fix some compiler warnings --- config.def.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 370fb1b..54d6d7c 100644 --- a/config.def.h +++ b/config.def.h @@ -22,8 +22,6 @@ * if no binding is found, mode->input(...) is called and the user entered * keys are passed as argument. this is used to change the document content. */ -static Mode vis_modes[]; - enum { VIS_MODE_BASIC, VIS_MODE_MARK, @@ -43,8 +41,11 @@ enum { VIS_MODE_INSERT_REGISTER, VIS_MODE_INSERT, VIS_MODE_REPLACE, + VIS_MODE_LAST, }; +static Mode vis_modes[VIS_MODE_LAST]; + /* command recognized at the ':'-prompt. tested top to bottom, first match wins. */ static Command cmds[] = { { "^bd(elete)?!?$", cmd_bdelete, false }, -- cgit v1.2.3