Changeset 238663 in webkit


Ignore:
Timestamp:
Nov 29, 2018 2:19:56 AM (5 years ago)
Author:
tpopela@redhat.com
Message:

[GTK][WPE] Fix BubblewrapLauncher clang warnings
https://bugs.webkit.org/show_bug.cgi?id=192086

Reviewed by Michael Catanzaro.

  • UIProcess/Launcher/glib/BubblewrapLauncher.cpp:

(WebKit::bindPathVar): Initialize the i variable to 0.
(WebKit::setupSeccomp): Initialize the optional datum_b member.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r238660 r238663  
     12018-11-29  Tomas Popela  <tpopela@redhat.com>
     2
     3        [GTK][WPE] Fix BubblewrapLauncher clang warnings
     4        https://bugs.webkit.org/show_bug.cgi?id=192086
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
     9        (WebKit::bindPathVar): Initialize the i variable to 0.
     10        (WebKit::setupSeccomp): Initialize the optional datum_b member.
     11
    1122018-11-28  Joseph Pecoraro  <pecoraro@apple.com>
    213
  • trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp

    r237982 r238663  
    472472
    473473    GUniquePtr<char*> splitPaths(g_strsplit(pathValue, ":", -1));
    474     for (size_t i; splitPaths.get()[i]; ++i)
     474    for (size_t i = 0; splitPaths.get()[i]; ++i)
    475475        bindIfExists(args, splitPaths.get()[i]);
    476476
     
    572572    //    in src/setup-seccomp.c
    573573    struct scmp_arg_cmp cloneArg = SCMP_A0(SCMP_CMP_MASKED_EQ, CLONE_NEWUSER, CLONE_NEWUSER);
    574     struct scmp_arg_cmp ttyArg = SCMP_A1(SCMP_CMP_EQ, (int)TIOCSTI);
     574    struct scmp_arg_cmp ttyArg = SCMP_A1(SCMP_CMP_EQ, static_cast<scmp_datum_t>(TIOCSTI), static_cast<scmp_datum_t>(0));
    575575    struct {
    576576        int scall;
Note: See TracChangeset for help on using the changeset viewer.