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=90daf5b8d1af2acbc335f5307cd020fbbc36b4e5;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 dcce33dc8c..8abe58fcf7 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 $<