While reviewing my gcc trunk build log on Darwin PPC, I noticed the
following...

/sw/src/fink.build/gcc4-4.1.9999-20060928/darwin_objdir/./prev-gcc/xgcc 
-B/sw/src/fink.build/gcc4-4.1.9999-20060928/darwin_objdir/./prev-gcc/ 
-B/sw/lib/gcc4/powerpc-apple-darwin8/bin
/ -c -I/sw/include -g -O2 -mdynamic-no-pic -DHAVE_CONFIG_H  -I. 
-I../../gcc-4.2-20060928/intl ../../gcc-4.2-20060928/intl/l10nflist.c
../../gcc-4.2-20060928/intl/l10nflist.c: In function '_nl_make_l10nflist':
../../gcc-4.2-20060928/intl/l10nflist.c:371: warning: passing argument 1 of 
'argz_next__' discards qualifiers from pointer target type

which according to...

http://www.thescripts.com/forum/thread213470.html

...is a bad idea. Shouldn't we change...

            while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir))

to

            while ((dir = __argz_next ((const char *) dirlist, dirlist_len, 
dir))

to avoid this warning?
             Jack

Reply via email to