Не получается запустить проект с GitHub на ардуино 2.3.2

Всем привет! Прошу помочь, есть такой проект на Github GitHub - sheaivey/rx5808-pro-diversity at master
Коротко суть - из видеоприемника 5,8ГГц делается сканер частот. Проекту уже лет 7-8, пытаюсь его запустить на свежей ардуино 2.3.2, установил библиотеки нужные для OLED дисплея, выходит вот такая ошибка:

new.cpp.o (symbol from plugin): In function operator new(unsigned int)': (.text+0x0): multiple definition of operator new(unsigned int, void*)’ C:\Users\user\AppData\Local\Temp\arduino\sketches\87266386AC6D90B7DDAFECFF07E94846\sketch\state.cpp.o (symbol from plugin):(.text+0x0): first defined here collect2.exe: error: ld returned 1 exit status exit status 1 Compilation error: exit status 1

Подскажите куда смотреть? По ошибке поиск дает, что какая-то проблема с ардуиной с оператор new, не хватает опыта разобраться.

Изначально проект делался на ардуино версии 1.6.9. судя по форому тех времен, все работало.

Возможно проще будет установить portable версию 1.6.9 и библиотеки тех лет.
https://www.arduino.cc/en/Guide/PortableIDE

Спасибо за ответ. Я пробовал ставить старую версию, но в итоге получал аналогичную ошибку. Попробую сейчас еще раз, все удалил. Опишусь тогда конкретнее

можно залить уже скомпилированную версию, если надо быстро

Спасибо, мне нужно немного изменить под себя код !

там ещё и библиотеки в сырцах какие-то

Ну, что Вам сказать. Авторы зачем-то определили оператор new в строках №№18-20 файла src/rx5808-pro-diversity/state.cpp, а такой оператор уже есть в системе, причём точно такой же! Вот оно и ругается.

Починить несложно, но судя по тому, что Вы в этом совсем не разбираетесь, возможно, не для Вас.

Попробуйте сделать так. Полезьте в этот файл и добавьте атрибут weak к этому оператору. Умеете атрибуты добавлять?

Вместо нынешнего

void *operator new(size_t size, void *ptr){
  return ptr;
}

у Вас должно получиться

void *operator new(size_t, void *) __attribute__ ((weak));

void *operator new(size_t size, void *ptr) {
  return ptr;
}

Если там в проекте сделано всё по уму, то должно помочь. Если не по уму, то надо уже будет смотреть.

Спасибо огромное, попробую отпишусь!

Вот маленький пример этой проблемы. Сейчас не компилируется с той же самой ошибкой “multiple definition of 'operator new(unsigned int, void*)'”. Раскомментируйте первую строку – скомпилируется (работать не будет и не должен, это пример чисто на компиляцию).

//void *operator new(size_t, void *) __attribute__ ((weak));

void *operator new(size_t size, void *ptr){
	(void)size;
  return ptr;
}

void setup(void) {
	int * n = new int(0);
	Serial.print(* n);
}

void loop(void) {}

однозначно компилируется )))

1 лайк

Спасибо! А то сам я не пробовал, потому не был уверен.

Накидало кучу предупреждений, но скомпилировалось

Спойлер
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_menu.cpp:1:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_menu.cpp:1:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\receiver.cpp:8:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:16:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:17:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:19:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:20:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index);
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\receiver.cpp:10:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\timer.h:16:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
         const bool hasTicked();
         ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\receiver.cpp: In function 'uint16_t Receiver::updateRssi()':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\receiver.cpp:128:5: warning: no return statement in function returning non-void [-Wreturn-type]
     }
     ^
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\receiver.cpp: In function 'void Receiver::switchDiversity()':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\receiver.cpp:165:20: warning: enumeration value 'AUTO' not handled in switch [-Wswitch]
             switch (EepromSettings.diversityMode) {
                    ^
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\receiver.cpp: At global scope:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\receiver.cpp:12:13: warning: 'void updateRssiLimits()' declared 'static' but never defined [-Wunused-function]
 static void updateRssiLimits();
             ^~~~~~~~~~~~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\receiver.cpp:13:13: warning: 'void writeSerialData()' declared 'static' but never defined [-Wunused-function]
 static void writeSerialData();
             ^~~~~~~~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\settings_eeprom.cpp:8:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\timer.h:16:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
         const bool hasTicked();
         ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_menu.cpp: In member function 'virtual void StateMachine::MenuStateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_menu.cpp:62:12: warning: enumeration value 'SAVE' not handled in switch [-Wswitch]
     switch (button) {
            ^
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_menu.cpp:62:12: warning: enumeration value 'COUNT' not handled in switch [-Wswitch]
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.cpp:3:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:16:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:17:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:19:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:20:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.cpp:316:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index) {
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.cpp:320:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index) {
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.cpp:337:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index) {
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.cpp:341:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index) {
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\rx5808-pro-diversity.ino:40:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:16:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:17:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:19:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:20:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index);
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\rx5808-pro-diversity.ino:43:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\rx5808-pro-diversity.ino:44:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "C:\\Temp\\arduino_build_544956\\sketch\\state_search.cpp" -o "C:\\Temp\\arduino_build_544956\\sketch\\state_search.cpp.o"
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.cpp:4:0:
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "C:\\Temp\\arduino_build_544956\\sketch\\state_search_ui.cpp" -o "C:\\Temp\\arduino_build_544956\\sketch\\state_search_ui.cpp.o"
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.cpp:44:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any() {
     ^~~~~
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "C:\\Temp\\arduino_build_544956\\sketch\\state_settings.cpp" -o "C:\\Temp\\arduino_build_544956\\sketch\\state_settings.cpp.o"
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "C:\\Temp\\arduino_build_544956\\sketch\\state_settings_rssi.cpp" -o "C:\\Temp\\arduino_build_544956\\sketch\\state_settings_rssi.cpp.o"
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.h:5,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.h:5:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\timer.h: At global scope:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\timer.h:16:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
         const bool hasTicked();
         ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.cpp:6:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:16:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:17:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:19:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:20:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index);
     ^~~~~
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "C:\\Temp\\arduino_build_544956\\sketch\\timer.cpp" -o "C:\\Temp\\arduino_build_544956\\sketch\\timer.cpp.o"
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.cpp: In member function 'virtual void StateMachine::ScreensaverStateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.cpp:95:12: warning: unused parameter 'button' [-Wunused-parameter]
     Button button,
            ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.cpp:96:24: warning: unused parameter 'pressType' [-Wunused-parameter]
     Buttons::PressType pressType
                        ^~~~~~~~~
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "C:\\Temp\\arduino_build_544956\\sketch\\ui.cpp" -o "C:\\Temp\\arduino_build_544956\\sketch\\ui.cpp.o"
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_menu_ui.cpp:1:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_menu_ui.cpp:1:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "C:\\Temp\\arduino_build_544956\\sketch\\ui_menu.cpp" -o "C:\\Temp\\arduino_build_544956\\sketch\\ui_menu.cpp.o"
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_menu_ui.cpp: At global scope:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_menu_ui.cpp:18:13: warning: 'void drawMenuEntry()' declared 'static' but never defined [-Wunused-function]
 static void drawMenuEntry();
             ^~~~~~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_bandscan.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_bandscan.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:16:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:17:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:19:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:20:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index);
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_bandscan.h:7,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_bandscan.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_bandscan.h:7:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_bandscan.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\pstr_helper.cpp: In function 'char* PSTRtoBuffer_P(const char*)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\pstr_helper.cpp:11:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         c = pgm_read_byte(str + i) && i < sizeof(PSTR2_BUFFER);
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "C:\\Temp\\arduino_build_544956\\sketch\\ui_state_menu.cpp" -o "C:\\Temp\\arduino_build_544956\\sketch\\ui_state_menu.cpp.o"
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.cpp:3:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_screensaver.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.cpp:5:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\timer.h: At global scope:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\timer.h:16:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
         const bool hasTicked();
         ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search.h:5,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search.h:5:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_bandscan.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.cpp:7:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:16:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:17:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:19:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:20:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.cpp: In function 'void* operator new(size_t, void*)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.cpp:19:27: warning: unused parameter 'size' [-Wunused-parameter]
 void *operator new(size_t size, void *ptr){
                           ^~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search.cpp:9:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h: At global scope:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:16:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:17:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:19:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:20:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search.cpp: In function 'const unsigned char* menuOrderIcon(void*)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search.cpp:55:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search.h:5,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search_ui.cpp:1:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search.h:5:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search_ui.cpp:1:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings.h:5,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings.h:5:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_search_ui.cpp:4:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h: At global scope:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:16:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:17:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:19:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:20:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index);
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:6:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.h:5,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.h:5:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:3:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h: In member function 'virtual void StateMachine::StateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:31:24: warning: unused parameter 'button' [-Wunused-parameter]
                 Button button,
                        ^~~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state.h:32:36: warning: unused parameter 'pressType' [-Wunused-parameter]
                 Buttons::PressType pressType) {};
                                    ^~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:6:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h: At global scope:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:16:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getSynthRegisterB(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:17:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint16_t getFrequency(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:19:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\channels.h:20:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const uint8_t getOrderedIndexFromIndex(uint8_t index);
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings.cpp: In member function 'virtual void StateMachine::SettingsStateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings.cpp:26:24: warning: unused parameter 'pressType' [-Wunused-parameter]
     Buttons::PressType pressType
                        ^~~~~~~~~
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\timer.cpp:2:0:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\timer.h:16:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
         const bool hasTicked();
         ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\timer.cpp:11:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 const bool Timer::hasTicked() {
 ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp: In member function 'virtual void StateMachine::SettingsRssiStateHandler::onUpdate()':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:25:12: warning: enumeration value 'WAIT_FOR_LOW' not handled in switch [-Wswitch]
     switch (internalState) {
            ^
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:25:12: warning: enumeration value 'WAIT_FOR_HIGH' not handled in switch [-Wswitch]
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:25:12: warning: enumeration value 'DONE' not handled in switch [-Wswitch]
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:52:20: warning: enumeration value 'WAIT_FOR_LOW' not handled in switch [-Wswitch]
             switch (internalState) {
                    ^
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:52:20: warning: enumeration value 'WAIT_FOR_HIGH' not handled in switch [-Wswitch]
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:52:20: warning: enumeration value 'DONE' not handled in switch [-Wswitch]
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp: In member function 'virtual void StateMachine::SettingsRssiStateHandler::onButtonChange(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:74:12: warning: enumeration value 'SCANNING_LOW' not handled in switch [-Wswitch]
     switch (internalState) {
            ^
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\state_settings_rssi.cpp:74:12: warning: enumeration value 'SCANNING_HIGH' not handled in switch [-Wswitch]
In file included from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\ui_state_menu.h:5:0,
                 from E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\ui_state_menu.cpp:2:
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\buttons.h:46:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const bool any();
     ^~~~~
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\ui_state_menu.cpp: In member function 'bool Ui::StateMenuHelper::handleButtons(Button, Buttons::PressType)':
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\ui_state_menu.cpp:49:12: warning: enumeration value 'SAVE' not handled in switch [-Wswitch]
     switch (button) {
            ^
E:\arduino-1.8.19\portable\sketchbook\2024\rx5808-pro-diversity\src\rx5808-pro-diversity\ui_state_menu.cpp:49:12: warning: enumeration value 'COUNT' not handled in switch [-Wswitch]
Compiling libraries...
Compiling library "Adafruit_SSD1306-master"
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "E:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master\\Adafruit_SSD1306.cpp" -o "C:\\Temp\\arduino_build_544956\\libraries\\Adafruit_SSD1306-master\\Adafruit_SSD1306.cpp.o"
Compiling library "Adafruit-GFX-Library-master"
"E:\\arduino-1.8.19\\portable\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -mmcu=atmega328pb -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\cores\\MCUdude_corefiles" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\variants\\pb-variant" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_SSD1306-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master" "-IE:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit_BusIO-master" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\Wire\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\SPI\\src" "-IE:\\arduino-1.8.19\\portable\\packages\\MiniCore\\hardware\\avr\\3.0.2\\libraries\\EEPROM\\src" "E:\\arduino-1.8.19\\portable\\sketchbook\\libraries\\Adafruit-GFX-Library-master\\glcdfont.c" -o "C:\\Temp\\arduino_build_544956\\libraries\\Adafruit-GFX-Library-master\\glcdfont.c.o"
E:\arduino-1.8.19\portable\sketchbook\libraries\Adafruit-GFX-Library-master\glcdfont.c:15:28: warning: 'font' defined but not used [-Wunused-const-variable=]
 static const unsigned char font[] PROGMEM = {
                            ^~~~