]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
sbc: Fix for gcc 15 compile error
authorRyan Eatmon <reatmon@ti.com>
Wed, 21 May 2025 18:32:57 +0000 (13:32 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 25 May 2025 10:24:50 +0000 (11:24 +0100)
With the move to gcc 15, the code is now generating a compile error.

../sbc-2.1/sbc/sbc_primitives_armv6.c:284:9:
   error: too many arguments to function 'sbc_analyze_eight_armv6';
      expected 0, have 3

Simple fix is to drop the C standard down to gnu17 to avoid this new
error.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/sbc/sbc_2.1.bb

index 5aaa52313ffb5f1a48dd804339f73a1c532e7bbd..8b91e7e65bb670a8664759b4a4cf138d4011e1a5 100644 (file)
@@ -19,5 +19,7 @@ SRC_URI[sha256sum] = "426633cabd7c798236443516dfa8335b47e004b0ef37ff107e0c7ead32
 
 inherit autotools pkgconfig
 
+CFLAGS += "-std=gnu17"
+
 PACKAGES =+ "${PN}-examples"
 FILES:${PN}-examples += "${bindir}/*"