Papp Gyozo (VBuster) wrote:
cmdline.c:2242: invalid use of non-lvalue array
cmdline.c:2242: invalid use of non-lvalue array
2237: if (args_info->daemon_mode_counter &&
args_info->standalone_mode_counter) {
2238: error += check_modes(
2239: (int []){args_info->daemon_given, args_info->attach_given,
-1},
2240: (const char *[]){"--daemon", "--attach", 0},
yes I could generate explicit declaration but I'd want to be sure
whether this solves the problem, because this would require some work in
Yes, it solved the problem. I manually edited the generated source (see the
diff for details) and reran GCC once more. Now it compiled the source even with
no warning.
as for the error, I can't see the l-value either, so it looks like a bug
in the compiler... :-D
I still don't know. The first not affected GCC version I found is 3.1. 3.0.4
seems buggy or rather I don't know something...