Commit ec4e2bf7 authored by Frediano Ziglio's avatar Frediano Ziglio

x11-display-info: Remove a warning compiling with Meson

Specifically:

../src/x11-display-info.cpp:120:30: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
120 |         for (size_t i = 0; i < drm_resources->count_connectors; ++i) {
    |                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: Kevin Pouget's avatarKevin Pouget <kpouget@redhat.com>
parent 28616c7c
Pipeline #121794 passed with stage
in 7 minutes and 33 seconds
......@@ -117,7 +117,7 @@ public:
{
std::vector<std::string> result;
for (size_t i = 0; i < drm_resources->count_connectors; ++i) {
for (int i = 0; i < drm_resources->count_connectors; ++i) {
drmModeConnectorPtr conn = drmModeGetConnector(drm_fd, drm_resources->connectors[i]);
if (conn == nullptr) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment