mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-04 20:14:18 +01:00
tests: Add -Wall, -Wextra, -pedantic, -Werror
This commit is contained in:
parent
3803e021f1
commit
78467b6927
@ -7,4 +7,10 @@ set(CMAKE_C_STANDARD 11)
|
||||
add_executable(test_compile_headers_as_c11
|
||||
main.c)
|
||||
|
||||
target_compile_options(test_compile_headers_as_c11 PRIVATE
|
||||
-Wall
|
||||
-Wextra
|
||||
-pedantic
|
||||
-Werror)
|
||||
|
||||
wut_create_rpx(test_compile_headers_as_c11)
|
||||
|
@ -2,5 +2,6 @@
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
(void)argc, (void)argv;
|
||||
return 0;
|
||||
}
|
||||
|
@ -7,4 +7,10 @@ set(CMAKE_C_STANDARD 99)
|
||||
add_executable(test_compile_headers_as_c99
|
||||
main.c)
|
||||
|
||||
target_compile_options(test_compile_headers_as_c99 PRIVATE
|
||||
-Wall
|
||||
-Wextra
|
||||
-pedantic
|
||||
-Werror)
|
||||
|
||||
wut_create_rpx(test_compile_headers_as_c99)
|
||||
|
@ -2,5 +2,6 @@
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
(void)argc, (void)argv;
|
||||
return 0;
|
||||
}
|
||||
|
@ -5,4 +5,10 @@ include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
|
||||
add_executable(test_compile_headers_as_cpp
|
||||
main.cpp)
|
||||
|
||||
target_compile_options(test_compile_headers_as_cpp PRIVATE
|
||||
-Wall
|
||||
-Wextra
|
||||
-pedantic
|
||||
-Werror)
|
||||
|
||||
wut_create_rpx(test_compile_headers_as_cpp)
|
||||
|
@ -2,5 +2,6 @@
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
(void)argc, (void)argv;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user