jinxuan / sparsehash

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

SPARSEHASH_COMPILE_ASSERT #102

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the tests with gcc 4.8.2

What is the expected output? What do you see instead?

../trunk/src/sparsehash/internal/hashtable-common.h:54:49: note: in definition 
of macro ‘SPARSEHASH_COMPILE_ASSERT’
   typedef SparsehashCompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
                                                 ^
mv -f .deps/sparsetable_unittest.Tpo .deps/sparsetable_unittest.Po
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o 
sparsetable_unittest sparsetable_unittest.o    
g++ -DHAVE_CONFIG_H -I. -I../trunk -I./src  -I../trunk/src  -Wall -W 
-Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT hashtable_test.o -MD 
-MP -MF .deps/hashtable_test.Tpo -c -o hashtable_test.o `test -f 
'src/hashtable_test.cc' || echo '../trunk/'`src/hashtable_test.cc
In file included from ../trunk/src/sparsehash/sparsetable:246:0,
                 from ../trunk/src/hashtable_test.cc:62:
../trunk/src/sparsehash/internal/hashtable-common.h: In function ‘bool 
google::sparsehash_internal::read_bigendian_number(INPUT*, IntType*, size_t)’:
../trunk/src/sparsehash/internal/hashtable-common.h:167:29: warning: typedef 
‘serializing_int_requires_an_unsigned_type’ locally defined but not used 
[-Wunused-local-typedefs]
                             serializing_int_requires_an_unsigned_type);
                             ^

What version of the product are you using? On what operating system?
trunk

Please provide any additional information below.
It's not an error, just unsightly

Original issue reported on code.google.com by philip.deegan on 19 Aug 2014 at 7:10

GoogleCodeExporter commented 9 years ago
Commenting out the lines resolves it without any apparent impact.

Original comment by philip.deegan on 24 Feb 2015 at 8:34

GoogleCodeExporter commented 9 years ago
this will be resolved on my github fork/clone

Thanks for all your work

Original comment by philip.deegan on 12 Mar 2015 at 7:12