Fixed + enabled all compiler warnings
This commit is contained in:
parent
6b90c9f76a
commit
c68c039c70
16 changed files with 72 additions and 22 deletions
|
@ -22,6 +22,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|||
file(GLOB_RECURSE TEST_SOURCES "src/*.cpp")
|
||||
file(GLOB_RECURSE TEST_HEADERS "src/*.h" "src/*.hpp")
|
||||
|
||||
# Enable all compiler warnings and errors
|
||||
if(MSVC)
|
||||
add_compile_options(/W4 /WX)
|
||||
else()
|
||||
add_compile_options(-Wall -Wextra -pedantic -Werror)
|
||||
endif()
|
||||
|
||||
# Add executable for static library
|
||||
add_executable(HarmonyLinkTestStatic_CPP ${TEST_SOURCES} ${TEST_HEADERS})
|
||||
target_link_libraries(HarmonyLinkTestStatic_CPP PRIVATE LibHarmonyLinkStatic)
|
||||
|
|
|
@ -89,7 +89,7 @@ int main()
|
|||
|
||||
std::thread inputThread(checkForQuit);
|
||||
|
||||
if (!LibHarmonyLink::HarmonyLink_Init())
|
||||
if (!LibHarmonyLink::HL_Init())
|
||||
{
|
||||
printf("Failed to Initialize HarmonyLink!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue