libweston: add missing include
authorGuillaume Champagne <champagne.guillaume.c@gmail.com>
Tue, 28 Jan 2020 01:14:29 +0000 (20:14 -0500)
committerPekka Paalanen <pq@iki.fi>
Wed, 29 Jan 2020 09:49:41 +0000 (09:49 +0000)
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 <champagne.guillaume.c@gmail.com>
libweston/animation.c
libweston/bindings.c
libweston/clipboard.c
libweston/content-protection.c
libweston/data-device.c
libweston/log.c
libweston/noop-renderer.c
libweston/touch-calibration.c
xwayland/selection.c

index a81a8c1..9ca7774 100644 (file)
@@ -36,6 +36,7 @@
 #include <fcntl.h>
 
 #include <libweston/libweston.h>
+#include "libweston-internal.h"
 #include "shared/helpers.h"
 #include "shared/timespec-util.h"
 
index 68c07a2..2ca999a 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/input.h>
 
 #include <libweston/libweston.h>
+#include "libweston-internal.h"
 #include "shared/helpers.h"
 #include "shared/timespec-util.h"
 
index c8296b0..7d60351 100644 (file)
@@ -34,6 +34,7 @@
 #include <sys/uio.h>
 
 #include <libweston/libweston.h>
+#include "libweston-internal.h"
 #include "shared/helpers.h"
 
 struct clipboard_source {
index 7b7d541..5659a32 100644 (file)
@@ -32,6 +32,7 @@
 #include <string.h>
 #include <libweston/libweston.h>
 #include <libweston/weston-log.h>
+#include "libweston-internal.h"
 #include "weston-content-protection-server-protocol.h"
 #include "shared/helpers.h"
 #include "shared/timespec-util.h"
index 865d749..8b0a282 100644 (file)
@@ -33,6 +33,7 @@
 #include <assert.h>
 
 #include <libweston/libweston.h>
+#include "libweston-internal.h"
 #include "shared/helpers.h"
 #include "shared/timespec-util.h"
 
index 6ce9454..da57e03 100644 (file)
@@ -35,6 +35,7 @@
 #include <wayland-util.h>
 
 #include <libweston/libweston.h>
+#include "weston-log-internal.h"
 
 /**
  * \defgroup wlog weston-logging
index d4bd2ef..d86e7f0 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 
 #include <libweston/libweston.h>
+#include "libweston-internal.h"
 
 static int
 noop_renderer_read_pixels(struct weston_output *output,
index 187c898..3c76036 100644 (file)
@@ -35,6 +35,7 @@
 #include "shared/timespec-util.h"
 #include <libweston/libweston.h>
 #include "libweston-internal.h"
+#include "backend.h"
 
 #include "weston-touch-calibration-server-protocol.h"
 
index e4d797a..c4845f2 100644 (file)
@@ -32,6 +32,7 @@
 #include <fcntl.h>
 #include <errno.h>
 
+#include <libweston/libweston.h>
 #include "xwayland.h"
 #include "shared/helpers.h"