• Alexander Lapshenkov's avatar
    Fix GCC incomplete designated initialization bug · aa3e861a
    Alexander Lapshenkov authored
    For GCC 8.4.0 is important to get all the first initializer in
    designated init-list in case of implicit construction. Correct compile
    if use explicit construction.
    
    Error example (GCC 8.4.0):
    -c ../../ui/events/platform/x11/x11_event_source.cc -o obj/ui/events/platform/x11/x11/x11_event_source.o
    ../../ui/events/platform/x11/x11_event_source.cc: In function ‘void ui::{anonymous}::InitializeXkb(x11::Connection*)’:
    ../../ui/events/platform/x11/x11_event_source.cc:78:4: error: no matching function for call to ‘x11::Xkb::SelectEvents(<brace-enclosed initializer list>)’
       });
    
    Change-Id: I80ea8d5f0a14bb8edc1e89e66eb6d1034bd1fec3
    Bug: 819294
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2516219Reviewed-by: default avatarThomas Anderson <thomasanderson@chromium.org>
    Commit-Queue: José Dapena Paz <jdapena@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#823589}
    aa3e861a
x11_event_source.cc 15.6 KB