Changeset 246586 in webkit


Ignore:
Timestamp:
Jun 19, 2019 5:03:15 AM (5 years ago)
Author:
zandobersek@gmail.com
Message:

USE_ANGLE macro can be evaluated without being defined
https://bugs.webkit.org/show_bug.cgi?id=198991

Reviewed by Carlos Garcia Campos.

  • wtf/Platform.h: On platforms not yet defining USE_ANGLE, the

incompatibility check with some other flags leads to the macro being
evaluated even when it was not defined, producing compiler warnings.
To avoid this, the macro should be defined to 0 before the check in
case it was not defined already.

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r246583 r246586  
     12019-06-19  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        USE_ANGLE macro can be evaluated without being defined
     4        https://bugs.webkit.org/show_bug.cgi?id=198991
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * wtf/Platform.h: On platforms not yet defining USE_ANGLE, the
     9        incompatibility check with some other flags leads to the macro being
     10        evaluated even when it was not defined, producing compiler warnings.
     11        To avoid this, the macro should be defined to 0 before the check in
     12        case it was not defined already.
     13
    1142019-06-18  Dean Jackson  <dino@apple.com>
    215
  • trunk/Source/WTF/wtf/Platform.h

    r246583 r246586  
    11391139
    11401140#if ENABLE(WEBGL)
     1141#if !defined(USE_ANGLE)
     1142#define USE_ANGLE 0
     1143#endif
     1144
    11411145#if (USE_ANGLE && (USE_OPENGL || USE_OPENGL_ES || (defined(USE_EGL) && USE_EGL)))
    11421146#error USE_ANGLE is incompatible with USE_OPENGL, USE_OPENGL_ES and USE_EGL
Note: See TracChangeset for help on using the changeset viewer.