From 8a86fb78235b5d7925b762b7b0934517890cc034 Mon Sep 17 00:00:00 2001 From: Robert Marko Date: Fri, 18 Apr 2025 12:26:29 +0200 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) -- 2.30.2