Use #define WL_HIDE_DEPRECATED to avoid deprecated warnings for wl_buffer
This commit is contained in:
@@ -52,7 +52,6 @@
|
||||
#include <libunwind.h>
|
||||
#endif
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include "compositor.h"
|
||||
#include "subsurface-server-protocol.h"
|
||||
#include "../shared/os-compatibility.h"
|
||||
|
||||
@@ -30,6 +30,8 @@ extern "C" {
|
||||
|
||||
#include <pixman.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
|
||||
#define WL_HIDE_DEPRECATED
|
||||
#include <wayland-server.h>
|
||||
|
||||
#include "version.h"
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include <wayland-util.h>
|
||||
|
||||
#include "compositor.h"
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#include <math.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include "compositor.h"
|
||||
#include "desktop-shell-server-protocol.h"
|
||||
#include "input-method-server-protocol.h"
|
||||
|
||||
Reference in New Issue
Block a user