fix scconfig warning about const char *

This commit is contained in:
Stefan Frederik 2020-12-09 02:10:17 +01:00
parent a642d6e05e
commit 98c9eeb749
1 changed files with 4 additions and 4 deletions

View File

@ -85,8 +85,8 @@ int find_script_fungw_user_call_ctx(const char *name, int logdepth, int fatal)
int find_script_fungw_cfg_pupdir(const char *name, int logdepth, int fatal) int find_script_fungw_cfg_pupdir(const char *name, int logdepth, int fatal)
{ {
const char *lf, *cf, *inc; const char *lf, *cf;
char * out; char *out;
char *test_c = char *test_c =
NL "#include <libfungw/fungw.h>" NL "#include <libfungw/fungw.h>"
NL "int main() {" NL "int main() {"
@ -102,7 +102,7 @@ int find_script_fungw_cfg_pupdir(const char *name, int logdepth, int fatal)
logprintf(logdepth, "find_fungw_cfg_pupdir: trying to find fungw pupdir...\n"); logprintf(logdepth, "find_fungw_cfg_pupdir: trying to find fungw pupdir...\n");
logdepth++; logdepth++;
inc = get("libs/script/fungw/includes"); /* inc = get("libs/script/fungw/includes");*/
lf = get("libs/script/fungw/ldflags"); lf = get("libs/script/fungw/ldflags");
cf = get("libs/script/fungw/cflags"); cf = get("libs/script/fungw/cflags");
@ -129,4 +129,4 @@ int find_script_fungw_all(const char *name, int logdepth, int fatal)
return 1; return 1;
require("libs/script/fungw/user_call_ctx/*", logdepth, 0); require("libs/script/fungw/user_call_ctx/*", logdepth, 0);
return 0; return 0;
} }