Преглед на файлове

Mask compiler warning in main.c for getcwd() call.

William Greathouse преди 11 години
родител
ревизия
12d6665bf2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -358,7 +358,7 @@ static void set_absolute_path(char *options[], const char *option_name,
         // be the relative directory for everything.
         // Extract civetweb executable directory into path.
         if ((p = strrchr(path_to_civetweb_exe, DIRSEP)) == NULL) {
-            getcwd(path, sizeof(path));
+            IGNORE_UNUSED_RESULT(getcwd(path, sizeof(path)));
         } else {
             snprintf(path, sizeof(path)-1, "%.*s", (int) (p - path_to_civetweb_exe),
                      path_to_civetweb_exe);