summaryrefslogtreecommitdiff
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-18 20:46:39 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-18 20:46:39 +0100
commit7f0608fb5219645d776fadfe13efb867c2460698 (patch)
tree84bf72d1c8231128fc2342a5aa59be42a54cb15d /src/gui_w32.c
parent8b778d55993d951a65f8a59843cecd177c707676 (diff)
downloadvim-7f0608fb5219645d776fadfe13efb867c2460698.zip
patch 7.4.1348
Problem: More compiler warnings. (John Marriott) Solution: Add type casts, remove unused variable.
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index ac0fb11f6..b496166e3 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;
}