From f1e8fc9dbfbe5025be1ad04ef3dab0700a519dba Mon Sep 17 00:00:00 2001 From: Guillaume Champagne Date: Mon, 27 Jan 2020 20:14:29 -0500 Subject: [PATCH] libweston: add missing include Fixes missing prototypes compilation warnings emitted when a function is defined before its prototype is declared. These warnings were introduced over time since the switch to meson because the -Wmissing-protoypes was not included in the compilation arguments. Signed-off-by: Guillaume Champagne --- libweston/animation.c | 1 + libweston/bindings.c | 1 + libweston/clipboard.c | 1 + libweston/content-protection.c | 1 + libweston/data-device.c | 1 + libweston/log.c | 1 + libweston/noop-renderer.c | 1 + libweston/touch-calibration.c | 1 + xwayland/selection.c | 1 + 9 files changed, 9 insertions(+) diff --git a/libweston/animation.c b/libweston/animation.c index a81a8c19..9ca77745 100644 --- a/libweston/animation.c +++ b/libweston/animation.c @@ -36,6 +36,7 @@ #include #include +#include "libweston-internal.h" #include "shared/helpers.h" #include "shared/timespec-util.h" diff --git a/libweston/bindings.c b/libweston/bindings.c index 68c07a22..2ca999a3 100644 --- a/libweston/bindings.c +++ b/libweston/bindings.c @@ -30,6 +30,7 @@ #include #include +#include "libweston-internal.h" #include "shared/helpers.h" #include "shared/timespec-util.h" diff --git a/libweston/clipboard.c b/libweston/clipboard.c index c8296b01..7d60351a 100644 --- a/libweston/clipboard.c +++ b/libweston/clipboard.c @@ -34,6 +34,7 @@ #include #include +#include "libweston-internal.h" #include "shared/helpers.h" struct clipboard_source { diff --git a/libweston/content-protection.c b/libweston/content-protection.c index 7b7d5419..5659a32b 100644 --- a/libweston/content-protection.c +++ b/libweston/content-protection.c @@ -32,6 +32,7 @@ #include #include #include +#include "libweston-internal.h" #include "weston-content-protection-server-protocol.h" #include "shared/helpers.h" #include "shared/timespec-util.h" diff --git a/libweston/data-device.c b/libweston/data-device.c index 865d7497..8b0a282f 100644 --- a/libweston/data-device.c +++ b/libweston/data-device.c @@ -33,6 +33,7 @@ #include #include +#include "libweston-internal.h" #include "shared/helpers.h" #include "shared/timespec-util.h" diff --git a/libweston/log.c b/libweston/log.c index 6ce9454b..da57e034 100644 --- a/libweston/log.c +++ b/libweston/log.c @@ -35,6 +35,7 @@ #include #include +#include "weston-log-internal.h" /** * \defgroup wlog weston-logging diff --git a/libweston/noop-renderer.c b/libweston/noop-renderer.c index d4bd2efe..d86e7f0b 100644 --- a/libweston/noop-renderer.c +++ b/libweston/noop-renderer.c @@ -29,6 +29,7 @@ #include #include +#include "libweston-internal.h" static int noop_renderer_read_pixels(struct weston_output *output, diff --git a/libweston/touch-calibration.c b/libweston/touch-calibration.c index 187c8987..3c76036d 100644 --- a/libweston/touch-calibration.c +++ b/libweston/touch-calibration.c @@ -35,6 +35,7 @@ #include "shared/timespec-util.h" #include #include "libweston-internal.h" +#include "backend.h" #include "weston-touch-calibration-server-protocol.h" diff --git a/xwayland/selection.c b/xwayland/selection.c index e4d797ae..c4845f20 100644 --- a/xwayland/selection.c +++ b/xwayland/selection.c @@ -32,6 +32,7 @@ #include #include +#include #include "xwayland.h" #include "shared/helpers.h"