* [Buildroot] [PATCH v3, 1/1] package/cwiid: fix build with gcc >= 14
@ 2024-07-23 9:33 Fabrice Fontaine
2024-07-23 9:35 ` Thomas Petazzoni via buildroot
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2024-07-23 9:33 UTC (permalink / raw)
To: buildroot; +Cc: Samuel Martin, Fabrice Fontaine
Fix the following build failure with gcc >= 14:
led.c: In function 'wmplugin_exec':
led.c:86:42: error: assignment to 'struct cwiid_btn_message *' from incompatible pointer type 'struct cwiid_btn_mesg *' [-Wincompatible-pointer-types]
86 | btn_mesg = &mesg[i].btn_mesg;
| ^
Fixes:
- http://autobuild.buildroot.org/results/a3bde74ff2137d088f4261e62930859bfe460cb9
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v2 -> v3:
- Fix patch number
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Fix variable declaration instead of adding a wrong cast
...gins-led-led.c-fix-build-with-gcc-14.patch | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 package/cwiid/0003-wminput-plugins-led-led.c-fix-build-with-gcc-14.patch
diff --git a/package/cwiid/0003-wminput-plugins-led-led.c-fix-build-with-gcc-14.patch b/package/cwiid/0003-wminput-plugins-led-led.c-fix-build-with-gcc-14.patch
new file mode 100644
index 0000000000..ba8121802b
--- /dev/null
+++ b/package/cwiid/0003-wminput-plugins-led-led.c-fix-build-with-gcc-14.patch
@@ -0,0 +1,37 @@
+From 10106fdb4cc833faa3c2fcb980d0a4eb121fe19d Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 23 Jul 2024 10:31:32 +0200
+Subject: [PATCH] wminput/plugins/led/led.c: fix build with gcc >= 14
+
+Fix the following build failure with gcc >= 14:
+
+led.c: In function 'wmplugin_exec':
+led.c:86:42: error: assignment to 'struct cwiid_btn_message *' from incompatible pointer type 'struct cwiid_btn_mesg *' [-Wincompatible-pointer-types]
+ 86 | btn_mesg = &mesg[i].btn_mesg;
+ | ^
+
+Fixes:
+ - http://autobuild.buildroot.org/results/a3bde74ff2137d088f4261e62930859bfe460cb9
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Upstream: https://github.com/abstrakraft/cwiid/pull/47
+---
+ wminput/plugins/led/led.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/wminput/plugins/led/led.c b/wminput/plugins/led/led.c
+index 93b96d9..591f365 100644
+--- a/wminput/plugins/led/led.c
++++ b/wminput/plugins/led/led.c
+@@ -72,7 +72,7 @@ struct wmplugin_data *wmplugin_exec(int mesg_count, union cwiid_mesg mesg[])
+ {
+ int i;
+ uint8_t button;
+- struct cwiid_btn_message *btn_mesg;
++ struct cwiid_btn_mesg *btn_mesg;
+
+ uint8_t led_state = (Led1 ? CWIID_LED1_ON : 0)
+ | (Led2 ? CWIID_LED2_ON : 0)
+--
+2.43.0
+
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v3, 1/1] package/cwiid: fix build with gcc >= 14
2024-07-23 9:33 [Buildroot] [PATCH v3, 1/1] package/cwiid: fix build with gcc >= 14 Fabrice Fontaine
@ 2024-07-23 9:35 ` Thomas Petazzoni via buildroot
2024-08-02 16:51 ` Thomas Petazzoni via buildroot
2024-09-03 16:19 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-23 9:35 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Samuel Martin, buildroot
Hello Fabrice,
Thanks for the new iteration.
On Tue, 23 Jul 2024 11:33:12 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> new file mode 100644
> index 0000000000..ba8121802b
> --- /dev/null
> +++ b/package/cwiid/0003-wminput-plugins-led-led.c-fix-build-with-gcc-14.patch
> @@ -0,0 +1,37 @@
> +From 10106fdb4cc833faa3c2fcb980d0a4eb121fe19d Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Tue, 23 Jul 2024 10:31:32 +0200
> +Subject: [PATCH] wminput/plugins/led/led.c: fix build with gcc >= 14
> +
> +Fix the following build failure with gcc >= 14:
> +
> +led.c: In function 'wmplugin_exec':
> +led.c:86:42: error: assignment to 'struct cwiid_btn_message *' from incompatible pointer type 'struct cwiid_btn_mesg *' [-Wincompatible-pointer-types]
> + 86 | btn_mesg = &mesg[i].btn_mesg;
> + | ^
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/a3bde74ff2137d088f4261e62930859bfe460cb9
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Upstream: https://github.com/abstrakraft/cwiid/pull/47
But is it the right fix this time? (I believe so, but your commit log
doesn't explain why it's the right fix, and what was wrong before).
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v3, 1/1] package/cwiid: fix build with gcc >= 14
2024-07-23 9:33 [Buildroot] [PATCH v3, 1/1] package/cwiid: fix build with gcc >= 14 Fabrice Fontaine
2024-07-23 9:35 ` Thomas Petazzoni via buildroot
@ 2024-08-02 16:51 ` Thomas Petazzoni via buildroot
2024-09-03 16:19 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-02 16:51 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Samuel Martin, buildroot
On Tue, 23 Jul 2024 11:33:12 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following build failure with gcc >= 14:
>
> led.c: In function 'wmplugin_exec':
> led.c:86:42: error: assignment to 'struct cwiid_btn_message *' from incompatible pointer type 'struct cwiid_btn_mesg *' [-Wincompatible-pointer-types]
> 86 | btn_mesg = &mesg[i].btn_mesg;
> | ^
>
> Fixes:
> - http://autobuild.buildroot.org/results/a3bde74ff2137d088f4261e62930859bfe460cb9
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v2 -> v3:
> - Fix patch number
> Changes v1 -> v2 (after review of Thomas Petazzoni):
> - Fix variable declaration instead of adding a wrong cast
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v3, 1/1] package/cwiid: fix build with gcc >= 14
2024-07-23 9:33 [Buildroot] [PATCH v3, 1/1] package/cwiid: fix build with gcc >= 14 Fabrice Fontaine
2024-07-23 9:35 ` Thomas Petazzoni via buildroot
2024-08-02 16:51 ` Thomas Petazzoni via buildroot
@ 2024-09-03 16:19 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2024-09-03 16:19 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Samuel Martin, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure with gcc >= 14:
> led.c: In function 'wmplugin_exec':
> led.c:86:42: error: assignment to 'struct cwiid_btn_message *' from incompatible pointer type 'struct cwiid_btn_mesg *' [-Wincompatible-pointer-types]
> 86 | btn_mesg = &mesg[i].btn_mesg;
> | ^
> Fixes:
> - http://autobuild.buildroot.org/results/a3bde74ff2137d088f4261e62930859bfe460cb9
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> Changes v2 -> v3:
> - Fix patch number
> Changes v1 -> v2 (after review of Thomas Petazzoni):
> - Fix variable declaration instead of adding a wrong cast
Committed to 2024.05.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-03 16:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-23 9:33 [Buildroot] [PATCH v3, 1/1] package/cwiid: fix build with gcc >= 14 Fabrice Fontaine
2024-07-23 9:35 ` Thomas Petazzoni via buildroot
2024-08-02 16:51 ` Thomas Petazzoni via buildroot
2024-09-03 16:19 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox