Papp Gyozo (VBuster) wrote:
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...
Hi there
this version should fix this problem
http://gdn.dsi.unifi.it/~bettini/gengetopt-2.22.1.tar.gz
please let me know
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
_______________________________________________
Help-gengetopt mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gengetopt