Return type of function is bool but return statement returning NULL. NULL may
not have been a defined as a void pointer expression for whomever made the
edit, possibly because they were using a newer version of GCC.
Compare
g++41 -o obj/re2/dfa.o -Wall -O3 -g -pthread -fno-exceptions -Wno-sign-compare
-c -I. -DNDEBUG re2/dfa.cc
re2/dfa.cc: In member function 'bool re2::DFA::Search(const re2::StringPiece&,
const re2::StringPiece&, bool, bool, bool, bool*, const char**,
std::vector<int, std::allocator<int> >*)':
re2/dfa.cc:1737: warning: converting to non-pointer type 'bool' from NULL
with
g++46 -o obj/re2/dfa.o -Wall -O3 -g -pthread -fno-exceptions -Wno-sign-compare
-c -I. -DNDEBUG re2/dfa.cc
Original issue reported on code.google.com by will...@xeraradio.com on 5 Aug 2011 at 12:50
Original issue reported on code.google.com by
will...@xeraradio.com
on 5 Aug 2011 at 12:50