Add Warnings To lib/
This commit is contained in:
parent
c3ba1f0bc7
commit
70fc889ac8
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user