Changeset 206580 in webkit


Ignore:
Timestamp:
Sep 29, 2016, 8:12:54 AM (9 years ago)
Author:
commit-queue@webkit.org
Message:

Clang 3.9 reports a compilation warning about ENABLE_EXCEPTION_SCOPE_VERIFICATION
https://bugs.webkit.org/show_bug.cgi?id=162718

Patch by Fujii Hironori <Fujii Hironori> on 2016-09-29
Reviewed by Alex Christensen.

Clang 3.9 reports a following compilation warning:

Source/JavaScriptCore/runtime/VM.h:656:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]

  • wtf/Platform.h: Changed the definition of ENABLE_EXCEPTION_SCOPE_VERIFICATION not to use 'defined'.
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r206563 r206580  
     12016-09-29  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        Clang 3.9 reports a compilation warning about ENABLE_EXCEPTION_SCOPE_VERIFICATION
     4        https://bugs.webkit.org/show_bug.cgi?id=162718
     5
     6        Reviewed by Alex Christensen.
     7
     8        Clang 3.9 reports a following compilation warning:
     9          Source/JavaScriptCore/runtime/VM.h:656:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
     10
     11        * wtf/Platform.h: Changed the definition of ENABLE_EXCEPTION_SCOPE_VERIFICATION not to use 'defined'.
     12
    1132016-09-28  Mark Lam  <mark.lam@apple.com>
    214
  • trunk/Source/WTF/wtf/Platform.h

    r206496 r206580  
    897897
    898898#ifndef ENABLE_EXCEPTION_SCOPE_VERIFICATION
    899 #define ENABLE_EXCEPTION_SCOPE_VERIFICATION (!defined(NDEBUG))
     899#ifdef NDEBUG
     900#define ENABLE_EXCEPTION_SCOPE_VERIFICATION 0
     901#else
     902#define ENABLE_EXCEPTION_SCOPE_VERIFICATION 1
     903#endif
    900904#endif
    901905
Note: See TracChangeset for help on using the changeset viewer.