ddavis2speedray / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

warnings from gcc-4.6 (svn head) with -Wall #351

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've built gcc-4.6 at r162828, and then built gtest with

LDFLAGS="-Wl,-rpath=/home/jyasskin/opensource/gcc/trunk/install/lib64" 
CFLAGS="-Wall -Werror" CXXFLAGS="-Wall -Werror" 
CC=/home/jyasskin/opensource/gcc/trunk/install/bin/gcc-4.6svn 
CXX=/home/jyasskin/opensource/gcc/trunk/install/bin/g++-4.6svn cmake 
-Dgtest_build_tests=ON ../src && make && make test

A scattering of unused-variable, NULL-passed-to-non-pointer, and 
false-used-as-NULL warnings result. I'll send a patch soon that fixes them.

Original issue reported on code.google.com by jyass...@gmail.com on 6 Jan 2011 at 11:20

GoogleCodeExporter commented 9 years ago
Fixed in r353 by jyasskin.

Original comment by w...@google.com on 10 Jan 2011 at 6:19

GoogleCodeExporter commented 9 years ago
That's r531.

Original comment by jyass...@gmail.com on 10 Jan 2011 at 6:44

GoogleCodeExporter commented 9 years ago
Oops, I looked at the gmock revision by mistake. :P

Original comment by w...@google.com on 10 Jan 2011 at 6:48