diff options
| -rw-r--r-- | meta-oe/recipes-extended/qad/qad/0001-Fix-warnings-found-by-clang-compiler.patch | 53 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/qad/qad_git.bb | 3 |
2 files changed, 55 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/qad/qad/0001-Fix-warnings-found-by-clang-compiler.patch b/meta-oe/recipes-extended/qad/qad/0001-Fix-warnings-found-by-clang-compiler.patch new file mode 100644 index 0000000000..7a9937d685 --- /dev/null +++ b/meta-oe/recipes-extended/qad/qad/0001-Fix-warnings-found-by-clang-compiler.patch | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | From 2e871d6d6d13955ff363ff756adfdd257e72e9e8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 10 Aug 2023 23:58:43 -0700 | ||
| 4 | Subject: [PATCH] Fix warnings found by clang compiler | ||
| 5 | |||
| 6 | Fix diagnostics found with -Wdeprecated-non-prototype using clang | ||
| 7 | compiler | ||
| 8 | |||
| 9 | e.g. | ||
| 10 | | ../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) { | | ^ | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://gitlab.com/CodethinkLabs/qad/qad/-/merge_requests/33] | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | include/backend.h | 8 ++++---- | ||
| 16 | src/backends/input/input_common.h | 2 +- | ||
| 17 | 2 files changed, 5 insertions(+), 5 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/include/backend.h b/include/backend.h | ||
| 20 | index 8f4c7c1..4bfe510 100644 | ||
| 21 | --- a/include/backend.h | ||
| 22 | +++ b/include/backend.h | ||
| 23 | @@ -41,10 +41,10 @@ typedef struct qad_screen_buffer_s { | ||
| 24 | } qad_screen_buffer_t; | ||
| 25 | |||
| 26 | typedef struct qad_backend_input_s { | ||
| 27 | - int (*move)(); | ||
| 28 | - int (*button)(); | ||
| 29 | - int (*touch)(); | ||
| 30 | - int (*swipe)(); | ||
| 31 | + int (*move)(int, int, int); | ||
| 32 | + int (*button)(int, int); | ||
| 33 | + int (*touch)(int, int, int, int); | ||
| 34 | + int (*swipe)(int, int, int, int, int, int); | ||
| 35 | void *data; | ||
| 36 | } qad_backend_input_t; | ||
| 37 | |||
| 38 | diff --git a/src/backends/input/input_common.h b/src/backends/input/input_common.h | ||
| 39 | index 8e099a5..f2ea73f 100644 | ||
| 40 | --- a/src/backends/input/input_common.h | ||
| 41 | +++ b/src/backends/input/input_common.h | ||
| 42 | @@ -28,7 +28,7 @@ | ||
| 43 | #define BTN_DOWN 1 | ||
| 44 | #define BTN_UP 0 | ||
| 45 | |||
| 46 | -qad_backend_input_t *create_input_backend(); | ||
| 47 | +qad_backend_input_t *create_input_backend(char input_type[]); | ||
| 48 | |||
| 49 | // int move(int x, int y, int event); | ||
| 50 | |||
| 51 | -- | ||
| 52 | 2.41.0 | ||
| 53 | |||
diff --git a/meta-oe/recipes-extended/qad/qad_git.bb b/meta-oe/recipes-extended/qad/qad_git.bb index e2a59139d9..056f28a0a4 100644 --- a/meta-oe/recipes-extended/qad/qad_git.bb +++ b/meta-oe/recipes-extended/qad/qad_git.bb | |||
| @@ -9,7 +9,8 @@ LICENSE = "MIT & GPL-2.0-or-later" | |||
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=402cce7fbcb6ea9ab5a0378dd7f40806 \ | 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=402cce7fbcb6ea9ab5a0378dd7f40806 \ |
| 10 | file://openqa/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 10 | file://openqa/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 11 | " | 11 | " |
| 12 | SRC_URI = "git://gitlab.com/CodethinkLabs/qad/qad;branch=main;protocol=https" | 12 | SRC_URI = "git://gitlab.com/CodethinkLabs/qad/qad;branch=main;protocol=https \ |
| 13 | file://0001-Fix-warnings-found-by-clang-compiler.patch" | ||
| 13 | 14 | ||
| 14 | SRCREV = "ae0c099c1fdc0ca6f5d631cea6b302937122b362" | 15 | SRCREV = "ae0c099c1fdc0ca6f5d631cea6b302937122b362" |
| 15 | 16 | ||
