Add Warnings To lib/
All checks were successful
CI / Test (AMD64) (push) Successful in 2m8s
CI / Test (ARM64) (push) Successful in 5m8s

This commit is contained in:
TheBrokenRail 2025-02-15 01:04:35 -05:00
parent c3ba1f0bc7
commit 70fc889ac8
2 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.17.0)
# Start Project
project(runtime)
# Warnings
add_compile_options(-Wall -Wextra -Werror -Wpointer-arith -Wshadow -Wnull-dereference)
# Headers
add_subdirectory(lib)
if(TARGET trampoline)
@ -30,9 +33,6 @@ if(NOT DONT_USE_QEMU)
)
endif()
# Warnings
target_compile_options(runtime PRIVATE -Wall -Wextra -Werror -Wpointer-arith -Wshadow -Wnull-dereference)
# Link
target_link_libraries(runtime
dl

View File

@ -9,6 +9,6 @@ bool SyscallTrampoline::should_use() {
}
// Call
Trampoline::Error SyscallTrampoline::call(const uint32_t id, uint32_t *ret_ptr, uint32_t length, const unsigned char *args) {
Trampoline::Error SyscallTrampoline::call(const uint32_t id, uint32_t *ret_ptr, __attribute__((unused)) uint32_t length, const unsigned char *args) {
return syscall(TRAMPOLINE_SYSCALL, id, ret_ptr, args) != 0 ? Error::SYSCALL : Error::NONE;
}