From: Robert Marko Date: Fri, 18 Apr 2025 10:26:29 +0000 (+0200) Subject: build: set GNU17 for lemon compilation X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=8a86fb78235b5d7925b762b7b0934517890cc034;p=project%2Fjsonpath.git build: set GNU17 for lemon compilation GCC15 has changed the default from GNU17 (Since GCC8) to GNU23 and this is breaking lemon compilation. So, simply set -std=gnu17 for lemon.c so it compiles again. Link: https://github.com/openwrt/jsonpath/pull/4 Signed-off-by: Robert Marko --- diff --git a/CMakeLists.txt b/CMakeLists.txt index dbfbf5d..d82799a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ ENDIF() ADD_CUSTOM_COMMAND( OUTPUT contrib/lemon DEPENDS contrib/lemon.c contrib/lempar.c - COMMAND gcc -o contrib/lemon contrib/lemon.c + COMMAND gcc -std=gnu17 -o contrib/lemon contrib/lemon.c COMMENT "Generating lemon parser generator" )