Skip to content

Commit

Permalink
Switch project to explicit C99 standard
Browse files Browse the repository at this point in the history
- 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 <julia.nechaevskaya@live.com>
  • Loading branch information
pvictress and JNechaevsky committed Dec 22, 2024
1 parent f73b594 commit d763a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit d763a21

Please sign in to comment.