]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1277 v7.4.1277
authorBram Moolenaar <Bram@vim.org>
Sun, 7 Feb 2016 14:57:00 +0000 (15:57 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 7 Feb 2016 14:57:00 +0000 (15:57 +0100)
Problem:    Compiler can complain about missing enum value in switch with some
            combination of features.
Solution:   Remove #ifdefs around case statements.

src/eval.c
src/version.c

index f295d3634c9159f2b1c32b1cc10b977fcff2bb8c..bd0040e66a2fd30314c7e811cb19bd3263636bfe 100644 (file)
@@ -19869,9 +19869,7 @@ f_type(typval_T *argvars, typval_T *rettv)
        case VAR_FUNC:   n = 2; break;
        case VAR_LIST:   n = 3; break;
        case VAR_DICT:   n = 4; break;
-#ifdef FEAT_FLOAT
        case VAR_FLOAT:  n = 5; break;
-#endif
        case VAR_SPECIAL:
             if (argvars[0].vval.v_number == VVAL_FALSE
                     || argvars[0].vval.v_number == VVAL_TRUE)
@@ -19879,9 +19877,7 @@ f_type(typval_T *argvars, typval_T *rettv)
             else
                 n = 7;
             break;
-#ifdef FEAT_JOB
        case VAR_JOB:    n = 8; break;
-#endif
        case VAR_UNKNOWN:
             EMSG2(_(e_intern2), "f_type(UNKNOWN)");
             n = -1;
@@ -24904,9 +24900,7 @@ write_viminfo_varlist(FILE *fp)
                {
                    case VAR_STRING: s = "STR"; break;
                    case VAR_NUMBER: s = "NUM"; break;
-#ifdef FEAT_FLOAT
                    case VAR_FLOAT:  s = "FLO"; break;
-#endif
                    case VAR_DICT:   s = "DIC"; break;
                    case VAR_LIST:   s = "LIS"; break;
                    case VAR_SPECIAL: s = "XPL"; break;
index 6e553886d6a1c9ea46dd7e04422f2a406d348ea0..f979949b5aeb7aa63fce2f5f7fda0e1e097a6dd2 100644 (file)
@@ -747,6 +747,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1277,
 /**/
     1276,
 /**/