clear clang errors

This commit is contained in:
Kasper Sauramo
2025-03-27 12:15:26 +02:00
parent a3d4d46226
commit c3f240624c
12 changed files with 34 additions and 50 deletions

View File

@@ -4,6 +4,7 @@ project(Hiload)
# I just like to have this with my tooling. Also might be required for proper hotreloading.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED)
# Conditionally define _GNU_SOURCE for Linux systems
if(UNIX AND NOT APPLE)
@@ -14,6 +15,8 @@ endif()
# Common compile options
add_compile_options("-fvisibility=hidden")
# TODO: Get -Wpadded back somehow.
add_compile_options("-Wno-declaration-after-statement" "-Wno-padded")
# Handle 3rd party dependencies
# #############################