bakerstu / openmrn

OpenMRN (Open Model Railroad Network)
BSD 2-Clause "Simplified" License
55 stars 28 forks source link

compiler warnings with -Wignored-qualifiers #297

Closed atanisoft closed 5 months ago

atanisoft commented 5 years ago

In testing the ESP32 compilation of OpenMRNLite (latest master code) with "-Wignored-qualifiers" GCC flag (default with PIO when compiling with esp-idf) I encountered this warning which would be good to review:

In file included from lib/OpenMRNLite/src/openlcb/SimpleStack.hxx:40:0,
                 from lib/OpenMRNLite/src/OpenMRNLite.h:44,
                 from include/ESP32CommandStation.h:38,
                 from src\interfaces\LocoNetInterface.cpp:18:
lib/OpenMRNLite/src/executor/Executor.hxx:167:34: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     Executable* volatile current() { return current_; }
                                  ^
balazsracz commented 5 months ago

Fixed by #772