From: Andrew Robbins Date: Tue, 15 Apr 2025 06:13:06 +0000 (-0400) Subject: luci-lua-runtime: specify c17 standard X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=ca805cb1595369af34fef31bd00f100ca197aca0;p=project%2Fluci.git luci-lua-runtime: specify c17 standard build was failing b/c gcc15 defaults to c23, which lemon is not written for (and errors with). Signed-off-by: Andrew Robbins (cherry picked from commit 852fc23b12d4a701ba724a40b6afd4d40a4ad68d) --- diff --git a/modules/luci-lua-runtime/src/Makefile b/modules/luci-lua-runtime/src/Makefile index 9dbaff4ee0..462270db8c 100644 --- a/modules/luci-lua-runtime/src/Makefile +++ b/modules/luci-lua-runtime/src/Makefile @@ -2,7 +2,7 @@ $(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC) -DNDEBUG -c -o $@ $< contrib/lemon: contrib/lemon.c contrib/lempar.c - cc -o contrib/lemon $< + cc -std=gnu17 -o contrib/lemon $< plural_formula.c: plural_formula.y contrib/lemon ./contrib/lemon -q $<