neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 64d3f68c07f7e67bbbd5db11b289705f7569b949
parent 9ef7297ef142354ace8b1f3f277d0eee3cfdc6d4
Author: red <33436708+b1tg@users.noreply.github.com>
Date:   Thu,  9 Mar 2023 23:46:34 +0800

build: fix build warning when using gcc 4.9.2

Problem:
When building with gcc 4.9.2, tree-sitter throws warning: "for loop initial
declarations are only allowed in C99 or C11 mode"

Solution:
set CMAKE_C_STANDARD option to 99
Diffstat:
Mcmake.deps/cmake/TreesitterCMakeLists.txt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake.deps/cmake/TreesitterCMakeLists.txt b/cmake.deps/cmake/TreesitterCMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.10) project(tree-sitter C) - +set(CMAKE_C_STANDARD 99) add_library(tree-sitter lib/src/lib.c) target_include_directories(tree-sitter PRIVATE lib/src lib/include)