[Webkit-unassigned] [Bug 113147] COMPILE_ASSERT generates warning on GCC 4.8

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 3 05:07:36 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=113147





--- Comment #12 from Raphael Kubo da Costa (rakuco, Intel) <rakuco at webkit.org>  2013-04-03 05:05:47 PST ---
There are also warnings generated by

Source/WTF/wtf/dtoa/utils.h:294:22: error: typedef ‘VerifySizesAreEqual’ locally defined but not used [-Werror=unused-local-typedefs]
         typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];

Source/WTF/wtf/HashTable.h:1302:84: warning: typedef ‘HashTableType’ locally defined but not used [-Wunused-local-typedefs]
         typedef HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits> HashTableType;
                                                                                    ^

Source/WTF/wtf/HashTable.h:1303:97: warning: typedef ‘const_iterator’ locally defined but not used [-Wunused-local-typedefs]
         typedef HashTableConstIterator<Key, Value, Extractor, HashFunctions, Traits, KeyTraits> const_iterator;
                                                                                                 ^
Doesn't it make more sense to add a macro to Compiler.h that's defined when we have either gcc or clang and use it in all those declarations?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list