Browse Source

Merge pull request #184 from luke-jr/bugfix_const_warning

Bugfix: Make initial_args a const char** to satisfy exec argument type warning (MinGW)
Con Kolivas 14 years ago
parent
commit
8e84abfc22
1 changed files with 5 additions and 1 deletions
  1. 5 1
      cgminer.c

+ 5 - 1
cgminer.c

@@ -1957,7 +1957,11 @@ void kill_work(void)
 	quit(0, "Shutdown signal received.");
 }
 
-static char **initial_args;
+static
+#ifdef WIN32
+const
+#endif
+char **initial_args;
 
 static void clean_up(void);