Changeset 219608 in webkit


Ignore:
Timestamp:
Jul 18, 2017 4:21:53 AM (7 years ago)
Author:
clopez@igalia.com
Message:

[GTK] Fix build with Clang after r219605.
https://bugs.webkit.org/show_bug.cgi?id=166682

Unreviewed build fix.

Clang-3.8 complains with the following error:
non-constant-expression cannot be narrowed from type 'gboolean' (aka 'int') to 'bool' in initializer list [-Wc++11-narrowing]

  • glib/SessionHostGlib.cpp: insert an explicit cast to silence this issue.
Location:
trunk/Source/WebDriver
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebDriver/ChangeLog

    r219605 r219608  
     12017-07-18  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        [GTK] Fix build with Clang after r219605.
     4        https://bugs.webkit.org/show_bug.cgi?id=166682
     5
     6        Unreviewed build fix.
     7
     8        Clang-3.8 complains with the following error:
     9        non-constant-expression cannot be narrowed from type 'gboolean' (aka 'int') to 'bool' in initializer list [-Wc++11-narrowing]
     10
     11        * glib/SessionHostGlib.cpp: insert an explicit cast to silence this issue.
     12
    1132017-07-13  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebDriver/glib/SessionHostGlib.cpp

    r219605 r219608  
    7878            while (g_variant_iter_loop(iter.get(), "(t&s&s&sb)", &targetID, &type, &name, &dummy, &isPaired)) {
    7979                if (!g_strcmp0(type, "Automation"))
    80                     targetList.uncheckedAppend({ targetID, name, isPaired });
     80                    targetList.uncheckedAppend({ targetID, name, static_cast<bool>(isPaired) });
    8181            }
    8282            sessionHost->setTargetList(connectionID, WTFMove(targetList));
Note: See TracChangeset for help on using the changeset viewer.