mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
qad: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
afae7e0dfa
commit
ab493e883a
@ -0,0 +1,53 @@
|
||||
From 2e871d6d6d13955ff363ff756adfdd257e72e9e8 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 10 Aug 2023 23:58:43 -0700
|
||||
Subject: [PATCH] Fix warnings found by clang compiler
|
||||
|
||||
Fix diagnostics found with -Wdeprecated-non-prototype using clang
|
||||
compiler
|
||||
|
||||
e.g.
|
||||
| ../git/src/server.c:108:35: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] | 108 | if (backend->input_backend->move(x, y, event) < 0) { | | ^
|
||||
|
||||
Upstream-Status: Submitted [https://gitlab.com/CodethinkLabs/qad/qad/-/merge_requests/33]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
include/backend.h | 8 ++++----
|
||||
src/backends/input/input_common.h | 2 +-
|
||||
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/include/backend.h b/include/backend.h
|
||||
index 8f4c7c1..4bfe510 100644
|
||||
--- a/include/backend.h
|
||||
+++ b/include/backend.h
|
||||
@@ -41,10 +41,10 @@ typedef struct qad_screen_buffer_s {
|
||||
} qad_screen_buffer_t;
|
||||
|
||||
typedef struct qad_backend_input_s {
|
||||
- int (*move)();
|
||||
- int (*button)();
|
||||
- int (*touch)();
|
||||
- int (*swipe)();
|
||||
+ int (*move)(int, int, int);
|
||||
+ int (*button)(int, int);
|
||||
+ int (*touch)(int, int, int, int);
|
||||
+ int (*swipe)(int, int, int, int, int, int);
|
||||
void *data;
|
||||
} qad_backend_input_t;
|
||||
|
||||
diff --git a/src/backends/input/input_common.h b/src/backends/input/input_common.h
|
||||
index 8e099a5..f2ea73f 100644
|
||||
--- a/src/backends/input/input_common.h
|
||||
+++ b/src/backends/input/input_common.h
|
||||
@@ -28,7 +28,7 @@
|
||||
#define BTN_DOWN 1
|
||||
#define BTN_UP 0
|
||||
|
||||
-qad_backend_input_t *create_input_backend();
|
||||
+qad_backend_input_t *create_input_backend(char input_type[]);
|
||||
|
||||
// int move(int x, int y, int event);
|
||||
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@ -9,7 +9,8 @@ LICENSE = "MIT & GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=402cce7fbcb6ea9ab5a0378dd7f40806 \
|
||||
file://openqa/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
"
|
||||
SRC_URI = "git://gitlab.com/CodethinkLabs/qad/qad;branch=main;protocol=https"
|
||||
SRC_URI = "git://gitlab.com/CodethinkLabs/qad/qad;branch=main;protocol=https \
|
||||
file://0001-Fix-warnings-found-by-clang-compiler.patch"
|
||||
|
||||
SRCREV = "ae0c099c1fdc0ca6f5d631cea6b302937122b362"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user