Galzai / MK32

Keyboard firmware for ESP32 microcontrollers
667 stars 117 forks source link

Error while compilation #10

Closed jjjjjiiii closed 4 years ago

jjjjjiiii commented 4 years ago
CC build/main/components/ble_new/hid_device_le_prf.o
C:/msys32/home/Computer/esp/mk32/components/ble_new/hid_device_le_prf.c:275:22: error: 'char_prop_read_write_notify' defined but not used [-Werror=unused-const-variable=]
 static const uint8_t char_prop_read_write_notify = ESP_GATT_CHAR_PROP_BIT_READ
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys32/home/Computer/esp/mk32/components/ble_new/hid_device_le_prf.c:268:22: error: 'char_prop_notify' defined but not used [-Werror=unused-const-variable=]
 static const uint8_t char_prop_notify = ESP_GATT_CHAR_PROP_BIT_NOTIFY;
                      ^~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
make[1]: *** [/home/Computer/esp/esp-idf/make/component_wrapper.mk:292: components/ble_new/hid_device_le_prf.o] error 1
make: *** [C:/msys32/home/Computer/esp/esp-idf/make/project.mk:590: component-main-build] error 2
Galzai commented 4 years ago

I think everything should work fine if you don't treat the warnings as errors (everything compiles fine on my machine and works) , check your compiler settings to allow warning compilations: https://stackoverflow.com/questions/11561261/how-to-compile-without-warnings-being-treated-as-errors