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.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219608
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2017-07-18 Carlos Alberto Lopez Perez <clopez@igalia.com>
+
+ [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.
+
2017-07-13 Carlos Garcia Campos <cgarcia@igalia.com>
Add initial implementation of WebDriver process to run the HTTP server
gboolean isPaired;
while (g_variant_iter_loop(iter.get(), "(t&s&s&sb)", &targetID, &type, &name, &dummy, &isPaired)) {
if (!g_strcmp0(type, "Automation"))
- targetList.uncheckedAppend({ targetID, name, isPaired });
+ targetList.uncheckedAppend({ targetID, name, static_cast<bool>(isPaired) });
}
sessionHost->setTargetList(connectionID, WTFMove(targetList));
g_dbus_method_invocation_return_value(invocation, nullptr);