summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2021-05-11 05:14:16 +0100
committerFrediano Ziglio <freddy77@gmail.com>2021-05-18 10:14:21 +0100
commit0b86b6808a06c482ea2bdef9f24be42e0dcb74ae (patch)
treeded9d53d3954b022d3aa4951cd3c4062a1d2895a
parentcb9bd1b09e1dcab2c58e0fd5c49e965edaec7c07 (diff)
tests: Fix -Wodr warning compiling tests with LTO enabled
Avoid the compiler to see 2 different defines of the same structure. Reported by Tomasz Kłoczko in https://gitlab.freedesktop.org/spice/spice/-/issues/44 Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
-rw-r--r--server/tests/test-display-base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/test-display-base.h b/server/tests/test-display-base.h
index 4e865093..a5e1f1b2 100644
--- a/server/tests/test-display-base.h
+++ b/server/tests/test-display-base.h
@@ -18,7 +18,7 @@
#ifndef __TEST_DISPLAY_BASE_H__
#define __TEST_DISPLAY_BASE_H__
-#include <spice.h>
+#include "spice-wrapped.h"
#include "basic-event-loop.h"
SPICE_BEGIN_DECLS