M
Mark
gcc-4.2.3 isn't happy with the following snippet:
void foo(char *p)
{
/* warning: initializer element is not computable at load time. */
char *my_argv[] = { "abc", p, "def", NULL };
...
}
int main(void)
{
foo("xyz");
return 0;
}
What am I doing wrong?
void foo(char *p)
{
/* warning: initializer element is not computable at load time. */
char *my_argv[] = { "abc", p, "def", NULL };
...
}
int main(void)
{
foo("xyz");
return 0;
}
What am I doing wrong?