From faffdb95515ea565a579ff007d2a08ed6aa705ef Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Mon, 9 Dec 2024 12:20:11 +0000 Subject: [PATCH] usb-modeswitch: fix gcc-15 build --- .../patches/fix-gcc-15-build.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/addons/addon-depends/system-tools-depends/usb-modeswitch/patches/fix-gcc-15-build.patch diff --git a/packages/addons/addon-depends/system-tools-depends/usb-modeswitch/patches/fix-gcc-15-build.patch b/packages/addons/addon-depends/system-tools-depends/usb-modeswitch/patches/fix-gcc-15-build.patch new file mode 100644 index 0000000000..1a82dda91d --- /dev/null +++ b/packages/addons/addon-depends/system-tools-depends/usb-modeswitch/patches/fix-gcc-15-build.patch @@ -0,0 +1,20 @@ +--- a/usb_modeswitch.c 2020-07-10 15:48:03.000000000 +0000 ++++ b/usb_modeswitch.c 2024-12-09 12:18:10.953574344 +0000 +@@ -570,7 +570,7 @@ + /* Get current configuration of default device, note value if Configuration + * parameter is set. Also sets active_config + */ +- currentConfigVal = get_current_config_value(dev); ++ currentConfigVal = get_current_config_value(); + if (Configuration > -1) { + SHOW_PROGRESS(output,"Current configuration number is %d\n", currentConfigVal); + } else +@@ -772,7 +772,7 @@ + if (Configuration > 0) { + if (currentConfigVal != Configuration) { + if (switchConfiguration()) { +- currentConfigVal = get_current_config_value(dev); ++ currentConfigVal = get_current_config_value(); + if (currentConfigVal == Configuration) { + SHOW_PROGRESS(output,"The configuration was set successfully\n"); + } else {