Package Details: awesfx 0.5.2-2

Git Clone URL: https://aur.archlinux.org/awesfx.git (read-only, click to copy)
Package Base: awesfx
Description: Utilities for emu10k1 cards (e.g. asfxload)
Upstream URL: https://github.com/tiwai/awesfx
Licenses: GPL2
Submitter: cockroach
Maintainer: cockroach
Last Packager: cockroach
Votes: 2
Popularity: 0.000000
First Submitted: 2019-01-19 15:40 (UTC)
Last Updated: 2024-05-20 01:00 (UTC)

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

RAMChYLD commented on 2024-05-20 09:41 (UTC)

You're welcome.

I've also submitted the patch upstream so hopefully it will be merged and be no longer needed in the future.

cockroach commented on 2024-05-20 01:00 (UTC) (edited on 2024-05-20 01:00 (UTC) by cockroach)

Thank you very much. I added your patch and bumped the package version.

RAMChYLD commented on 2024-05-19 12:15 (UTC) (edited on 2024-05-19 12:32 (UTC) by RAMChYLD)

suddenly no longer able to build. The error returned is

alsa.c: In function ‘seq_set_gus_bank’:
alsa.c:149:16: error: ‘return’ with a value, in function returning void [-Wreturn-mismatch]
  149 |         return snd_hwdep_ioctl(hwdep, SNDRV_EMUX_IOCTL_MISC_MODE, &mode);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alsa.c:142:6: note: declared here
  142 | void seq_set_gus_bank(int bank)
      |      ^~~~~~~~~~~~~~~~
make[1]: *** [Makefile:599: alsa.o] Error 1

I have managed to fix the error. The problem is due to the function using a return statement when the return type declared is void, GCC14 apparently won't allow this anymore. Patch as below:

--- alsa.c.orig 2024-05-19 20:28:58.365872788 +0800
+++ alsa.c      2024-05-19 20:29:06.711873549 +0800
@@ -139,7 +139,7 @@
        return snd_hwdep_ioctl(hwdep, SNDRV_EMUX_IOCTL_MISC_MODE, &mode);
 }

-void seq_set_gus_bank(int bank)
+int seq_set_gus_bank(int bank)
 {
        struct sndrv_emux_misc_mode mode;
        mode.port = -1;