On 05/04/2011 06:13 PM, Jack Howarth wrote: > Currently the bootstrap with --enable-build-with-cxx is failing because of > the following warnings treated as errors... > > /sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/./prev-gcc/g++ > -B/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/./prev-gcc/ > -B/sw/lib/gcc4.7/x86_64-apple-darwin10.7.0/bin/ -nostdinc++ > -B/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/src/.libs > > -I/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/include/x86_64-apple-darwin10.7.0 > > -I/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/include > > -I/sw/src/fink.build/gcc47-4.7.0-1000/gcc-4.7-20110504/libstdc++-v3/libsupc++ > -L/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/src/.libs > -c -g -O2 -mdynamic-no-pic -flto=jobserver -frandom-seed=1 > -fprofile-generate -fno-lto -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual > -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros > -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. - I. -I../../gcc-4.7-20110504/gcc -I../../gcc-4.7-20110504/gcc/. -I../../gcc-4.7-20110504/gcc/../include -I../../gcc-4.7-20110504/gcc/../libcpp/include -I/sw/include -I/sw/include -I../../gcc-4.7-20110504/gcc/../libdecnumber -I../../gcc-4.7-20110504/gcc/../libdecnumber/dpd -I../libdecnumber -I/sw/include -I/sw/include -DCLOOG_INT_GMP -DCLOOG_ORG -I/sw/include ../../gcc-4.7-20110504/gcc/varpool.c -o varpool.o > ../../gcc-4.7-20110504/gcc/tree-inline.c: In function 'tree_node* > maybe_inline_call_in_expr(tree)': > ../../gcc-4.7-20110504/gcc/tree-inline.c:5241:40: error: converting 'false' > to pointer type 'void (*)(tree)' [-Werror=conversion-null] > cc1plus: all warnings being treated as errors > > /sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/./prev-gcc/g++ > -B/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/./prev-gcc/ > -B/sw/lib/gcc4.7/x86_64-apple-darwin10.7.0/bin/ -nostdinc++ > -B/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/src/.libs > > -I/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/include/x86_64-apple-darwin10.7.0 > > -I/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/include > > -I/sw/src/fink.build/gcc47-4.7.0-1000/gcc-4.7-20110504/libstdc++-v3/libsupc++ > -L/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/prev-x86_64-apple-darwin10.7.0/libstdc++-v3/src/.libs > -c -g -O2 -mdynamic-no-pic -flto=jobserver -frandom-seed=1 > -fprofile-generate -fno-lto -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual > -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros > -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. - I. -I../../gcc-4.7-20110504/gcc -I../../gcc-4.7-20110504/gcc/. -I../../gcc-4.7-20110504/gcc/../include -I../../gcc-4.7-20110504/gcc/../libcpp/include -I/sw/include -I/sw/include -I../../gcc-4.7-20110504/gcc/../libdecnumber -I../../gcc-4.7-20110504/gcc/../libdecnumber/dpd -I../libdecnumber -I/sw/include -I/sw/include -DCLOOG_INT_GMP -DCLOOG_ORG -I/sw/include ../../gcc-4.7-20110504/gcc/tree-inline.c -o tree-inline.o > ../../gcc-4.7-20110504/gcc/varpool.c: In function 'varpool_node* > varpool_extra_name_alias(tree, tree)': > ../../gcc-4.7-20110504/gcc/varpool.c:679:10: error: converting 'false' to > pointer type 'varpool_node*' [-Werror=conversion-null] > cc1plus: all warnings being treated as errors > > Is there a simple fix to suppress these warnings? > Jack
Fix those assignments to use "NULL" instead of "false". Janis