diff --git a/CMakeLists.txt b/CMakeLists.txt index 839679b..578eb1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,12 +68,6 @@ add_test(NAME AllTestsInMain COMMAND KeyboardTest) # Define the BUILD_DLL macro for the library build target_compile_definitions(blink PRIVATE BUILD_DLL) -# fmt dependency -find_package(fmt CONFIG REQUIRED) -target_link_libraries(main PRIVATE fmt::fmt) -target_link_libraries(blink PRIVATE fmt::fmt) -target_link_libraries(KeyboardTest PRIVATE fmt::fmt) - # Google Benchmark find_package(benchmark CONFIG REQUIRED) add_executable(KeyboardBenchmark "benchmark/rk84_benchmark.cpp") diff --git a/src/blink/usb_functions.cpp b/src/blink/usb_functions.cpp index 5dc8e60..ae8567c 100644 --- a/src/blink/usb_functions.cpp +++ b/src/blink/usb_functions.cpp @@ -5,7 +5,6 @@ #include #include -#include #include #include #include @@ -131,7 +130,7 @@ void DoAdditionalUsbThings(HANDLE hDev) { HIDP_CAPS capabilities; NTSTATUS capsResult = HidP_GetCaps(preparsedData, &capabilities); if (capsResult == 0x0011000000) - fmt::print("compared..."); + printf("compared..."); HidD_FreePreparsedData(preparsedData); } @@ -259,7 +258,7 @@ std::vector ListAvailableKeyboards() { CloseHandle(hDev); - for (int i = 0; i < known_keyboards.size(); i++) { + for (size_t i = 0; i < known_keyboards.size(); i++) { KeyboardInfo known_keyboard = known_keyboards[i]; if (deviceAttributes.VendorID == known_keyboard.vid && deviceAttributes.ProductID == known_keyboard.pid) { diff --git a/src/demo/choose_keyboard.cpp b/src/demo/choose_keyboard.cpp index ec3f20f..45338d0 100644 --- a/src/demo/choose_keyboard.cpp +++ b/src/demo/choose_keyboard.cpp @@ -17,7 +17,8 @@ KeyboardInfo ChooseKeyboard() { std::cout << "Keyboards Available:" << std::endl; int i; - for (i = 0; i < available_keebs.size(); i++) { + int n_available_keebs = available_keebs.size(); + for (i = 0; i < n_available_keebs; i++) { KeyboardInfo keeb = available_keebs[i]; std::cout << i + 1 << ". " << keeb.display_name << " [" << std::hex << keeb.vid << ":" << keeb.pid << "]" diff --git a/src/demo/main.cpp b/src/demo/main.cpp index 2b5a8c2..38da970 100644 --- a/src/demo/main.cpp +++ b/src/demo/main.cpp @@ -5,7 +5,6 @@ #include #include -#include #include "choose_keyboard.h" #include "choose_activity.h" diff --git a/vcpkg.json b/vcpkg.json index 2f9e700..fa37251 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,5 @@ { "dependencies": [ - "fmt", "gtest", "benchmark" ]