From: Andrew Robbins Date: Tue, 15 Apr 2025 05:38:35 +0000 (-0400) Subject: luci-base: specify c17 standard X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=4b32fa2cd3724e1c603ff5dc48809e0aa47efb56;p=project%2Fluci.git luci-base: 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 7e6741fbae9b122545e80aad8b9e3a5529c442ce) --- diff --git a/modules/luci-base/src/Makefile b/modules/luci-base/src/Makefile index ad309e5c6b..431248ee17 100644 --- a/modules/luci-base/src/Makefile +++ b/modules/luci-base/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 $< lib/plural_formula.c: lib/plural_formula.y contrib/lemon ./contrib/lemon -q $<