--- a/src/assistant/qcollectiongenerator/main.c
+++ b/src/assistant/qcollectiongenerator/main.c
@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
 
     argv[0] = newPath;
 #ifdef _WIN32
-    const intptr_t ret = _spawnvp(_P_WAIT, newPath, argv);
+    const intptr_t ret = _spawnvp(_P_WAIT, newPath, (const char * const*)argv);
     if (ret == -1) {
         fprintf(stderr, "Error while executing \"%s\" tool.\n", newPath);
         return 3;
