changeset 8108:50515f2e81d1 v7.4.1348

commit https://github.com/vim/vim/commit/7f0608fb5219645d776fadfe13efb867c2460698 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 18 20:46:39 2016 +0100 patch 7.4.1348 Problem: More compiler warnings. (John Marriott) Solution: Add type casts, remove unused variable.
author Christian Brabandt <cb@256bit.org>
date Thu, 18 Feb 2016 21:00:07 +0100
parents 925df1bbc05c
children 72614c7dc828
files src/gui_w32.c src/version.c
diffstat 2 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}
--- 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,