Changeset 147640 in webkit


Ignore:
Timestamp:
Apr 4, 2013 9:40:41 AM (11 years ago)
Author:
abecsi@webkit.org
Message:

Fix the build with GCC 4.8
https://bugs.webkit.org/show_bug.cgi?id=113147

Reviewed by Allan Sandfeld Jensen.

Source/JavaScriptCore:

Initialize JSObject* exception to suppress warnings that make
the build fail because of -Werror=maybe-uninitialized.

  • runtime/Executable.cpp:

(JSC::FunctionExecutable::compileForCallInternal):
(JSC::FunctionExecutable::compileForConstructInternal):

Source/WTF:

Disable diagnostic warning -Wunused-local-typedefs for GCC 4.8
since dummy typedefs are commonly used in the codebase.

  • wtf/Compiler.h:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r147570 r147640  
     12013-04-04  Andras Becsi  <andras.becsi@digia.com>
     2
     3        Fix the build with GCC 4.8
     4        https://bugs.webkit.org/show_bug.cgi?id=113147
     5
     6        Reviewed by Allan Sandfeld Jensen.
     7
     8        Initialize JSObject* exception to suppress warnings that make
     9        the build fail because of -Werror=maybe-uninitialized.
     10
     11        * runtime/Executable.cpp:
     12        (JSC::FunctionExecutable::compileForCallInternal):
     13        (JSC::FunctionExecutable::compileForConstructInternal):
     14
    1152013-04-02  Mark Hahnenberg  <mhahnenberg@apple.com>
    216
  • trunk/Source/JavaScriptCore/runtime/Executable.cpp

    r145000 r147640  
    524524#endif
    525525    ASSERT((jitType == JITCode::bottomTierJIT()) == !m_codeBlockForCall);
    526     JSObject* exception;
     526    JSObject* exception = 0;
    527527    OwnPtr<FunctionCodeBlock> newCodeBlock = produceCodeBlockFor(scope, CodeForCall, exception);
    528528    if (!newCodeBlock)
     
    560560   
    561561    ASSERT((jitType == JITCode::bottomTierJIT()) == !m_codeBlockForConstruct);
    562     JSObject* exception;
     562    JSObject* exception = 0;
    563563    OwnPtr<FunctionCodeBlock> newCodeBlock = produceCodeBlockFor(scope, CodeForConstruct, exception);
    564564    if (!newCodeBlock)
  • trunk/Source/WTF/ChangeLog

    r147595 r147640  
     12013-04-04  Andras Becsi  <andras.becsi@digia.com>
     2
     3        Fix the build with GCC 4.8
     4        https://bugs.webkit.org/show_bug.cgi?id=113147
     5
     6        Reviewed by Allan Sandfeld Jensen.
     7
     8        Disable diagnostic warning -Wunused-local-typedefs for GCC 4.8
     9        since dummy typedefs are commonly used in the codebase.
     10
     11        * wtf/Compiler.h:
     12
    1132013-04-03  Pratik Solanki  <psolanki@apple.com>
    214
  • trunk/Source/WTF/wtf/Compiler.h

    r146993 r147640  
    124124/* Specific compiler features */
    125125#if COMPILER(GCC) && !COMPILER(CLANG)
     126#if GCC_VERSION_AT_LEAST(4, 8, 0)
     127#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
     128#endif
    126129#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
    127130/* C11 support */
Note: See TracChangeset for help on using the changeset viewer.