From 40dc5c6d81fca572eb2d62d53609b125ef82431e Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Thu, 21 May 2015 16:32:36 +0100 Subject: [PATCH] Variable abs shadows on gcc 4.6.3 Just make it a more explicit variable name, absolute --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 721f1fd1..10b655a2 100644 --- a/src/main.c +++ b/src/main.c @@ -605,7 +605,7 @@ static void set_absolute_path(char *options[], const char *option_name, const char *path_to_civetweb_exe) { - char path[PATH_MAX] = "", abs[PATH_MAX] = ""; + char path[PATH_MAX] = "", absolute[PATH_MAX] = ""; const char *option_value; const char *p; @@ -633,8 +633,8 @@ static void set_absolute_path(char *options[], strncat(path, option_value, sizeof(path) - strlen(path) - 1); /* Absolutize the path, and set the option */ - IGNORE_UNUSED_RESULT(abs_path(path, abs, sizeof(abs))); - set_option(options, option_name, abs); + IGNORE_UNUSED_RESULT(abs_path(path, absolute, sizeof(absolute))); + set_option(options, option_name, absolute); } }