OSDN Git Service

constポインタ(ポインタ)の変数をC_FREEに渡すとVC++がワーニングを出す事が
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 10 Apr 2002 15:56:25 +0000 (15:56 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 10 Apr 2002 15:56:25 +0000 (15:56 +0000)
わかったので再修正。

src/autopick.c

index 4211788..f440d0c 100644 (file)
@@ -1358,7 +1358,7 @@ static void free_text_lines(cptr *lines_list)
                string_free(lines_list[lines]);
 
        /* free list of pointers */
-       C_FREE(lines_list, MAX_LINES, cptr *);
+       C_FREE((char **)lines_list, MAX_LINES, char *);
 }