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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 23 22:42:16 PDT 2013


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

           Summary: COMPILE_ASSERT generates warning on GCC 4.8
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: net147 at gmail.com
                CC: hausmann at webkit.org


Compiling WebKit with GCC 4.8 generates lots of warnings due to COMPILE_ASSERT defining an unused typedef. Example:
generated/InspectorTypeBuilder.h: In member function 'WebCore::TypeBuilder::Network::CachedResource::Builder<STATE>::operator WTF::RefPtr<WebCore::TypeBuilder::Network::CachedResource>&()':
..\WTF/wtf/Assertions.h:328:47: warning: typedef 'dummyresult_is_not_ready' locally defined but not used [-Wunused-local-typedefs]
 #define COMPILE_ASSERT(exp, name) typedef int dummy##name [(exp) ? 1 : -1]
                                               ^
generated/InspectorTypeBuilder.h:2932:13: note: in expansion of macro 'COMPILE_ASSERT'
             COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);

-- 
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