static char *mangle(struct manifest *m, char **lines)
{
char *ret, *use_funcs = NULL, *why;
static char *mangle(struct manifest *m, char **lines)
{
char *ret, *use_funcs = NULL, *why;
- bool in_function = false, fake_function = false, has_main = false;
+ bool in_function = false, fake_function = false, has_main = false,
+ fake_main = false;
"/* Need a main to link successfully. */\n"
"int main(int argc, char *argv[])\n{\n");
fake_function = true;
"/* Need a main to link successfully. */\n"
"int main(int argc, char *argv[])\n{\n");
fake_function = true;
ret = tal_strcat(m, take(ret),
"(void)argc; (void)argv;\n");
ret = tal_strcat(m, take(ret),
"(void)argc; (void)argv;\n");