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
|
# Start Project
|
||||||
project(runtime)
|
project(runtime)
|
||||||
|
|
||||||
|
# Warnings
|
||||||
|
add_compile_options(-Wall -Wextra -Werror -Wpointer-arith -Wshadow -Wnull-dereference)
|
||||||
|
|
||||||
# Headers
|
# Headers
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
if(TARGET trampoline)
|
if(TARGET trampoline)
|
||||||
@ -30,9 +33,6 @@ if(NOT DONT_USE_QEMU)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Warnings
|
|
||||||
target_compile_options(runtime PRIVATE -Wall -Wextra -Werror -Wpointer-arith -Wshadow -Wnull-dereference)
|
|
||||||
|
|
||||||
# Link
|
# Link
|
||||||
target_link_libraries(runtime
|
target_link_libraries(runtime
|
||||||
dl
|
dl
|
||||||
|
@ -9,6 +9,6 @@ bool SyscallTrampoline::should_use() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call
|
// 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;
|
return syscall(TRAMPOLINE_SYSCALL, id, ret_ptr, args) != 0 ? Error::SYSCALL : Error::NONE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user