From d763a2183d966480703abd95b09c8dbfffa2a849 Mon Sep 17 00:00:00 2001 From: pvictress <185700473+pvictress@users.noreply.github.com> Date: Sun, 22 Dec 2024 22:51:43 +0300 Subject: [PATCH] Switch project to explicit C99 standard - Set the project to explicitly use the C99 standard for compilation. - This change ensures clarity and takes advantage of modern language features. - The update does not enforce strict adherence to C99, allowing compilers to use newer standards where available. Co-Authored-By: Julia Nechaevskaya --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a34fe88c..0ce5bdbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") cmake_minimum_required(VERSION 3.10) project("Inter" VERSION 8.1.0 LANGUAGES C) +set(CMAKE_C_STANDARD 99) # Autotools variables set(top_srcdir ${CMAKE_CURRENT_SOURCE_DIR}) @@ -45,7 +46,6 @@ add_compile_options("/wd4013" # Function undefined; assuming extern returning in ) else() add_compile_options("-Wall" - "-Wdeclaration-after-statement" "-Wredundant-decls" "-Wformat-security" # "-Wno-ignored-qualifiers"