diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-18 20:46:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-18 20:46:39 +0100 |
commit | 7f0608fb5219645d776fadfe13efb867c2460698 (patch) | |
tree | 84bf72d1c8231128fc2342a5aa59be42a54cb15d /src | |
parent | 8b778d55993d951a65f8a59843cecd177c707676 (diff) |
patch 7.4.1348v7.4.1348
Problem: More compiler warnings. (John Marriott)
Solution: Add type casts, remove unused variable.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_w32.c | 13 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index ac0fb11f69..b496166e3f 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -57,7 +57,6 @@ directx_enabled(void) gui_mch_set_rendering_options(char_u *s) { #ifdef FEAT_DIRECTX - int retval = FAIL; char_u *p, *q; int dx_enable = 0; @@ -95,36 +94,36 @@ gui_mch_set_rendering_options(char_u *s) else if (STRCMP(name, "gamma") == 0) { dx_flags |= 1 << 0; - dx_gamma = (float)atof(value); + dx_gamma = (float)atof((char *)value); } else if (STRCMP(name, "contrast") == 0) { dx_flags |= 1 << 1; - dx_contrast = (float)atof(value); + dx_contrast = (float)atof((char *)value); } else if (STRCMP(name, "level") == 0) { dx_flags |= 1 << 2; - dx_level = (float)atof(value); + dx_level = (float)atof((char *)value); } else if (STRCMP(name, "geom") == 0) { dx_flags |= 1 << 3; - dx_geom = atoi(value); + dx_geom = atoi((char *)value); if (dx_geom < 0 || dx_geom > 2) return FAIL; } else if (STRCMP(name, "renmode") == 0) { dx_flags |= 1 << 4; - dx_renmode = atoi(value); + dx_renmode = atoi((char *)value); if (dx_renmode < 0 || dx_renmode > 6) return FAIL; } else if (STRCMP(name, "taamode") == 0) { dx_flags |= 1 << 5; - dx_taamode = atoi(value); + dx_taamode = atoi((char *)value); if (dx_taamode < 0 || dx_taamode > 3) return FAIL; } diff --git a/src/version.c b/src/version.c index 31e15c3350..d02a380b42 100644 --- a/src/version.c +++ b/src/version.c @@ -748,6 +748,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1348, +/**/ 1347, /**/ 1346, |