Closed estshorter closed 3 years ago
hey @estshorter,
Thanks for your feedback.
Quick workaround: unless you prepend all offending function calls with (void)!
you can suppress those warnings by adding an extra -Wno-unused-result
flag:
build_flags =
-std=gnu++17
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-Wno-unused-result
@estshorter Thanks for the report ! I've adjusted the code in the develop branch to suppress the warning.
Thanks for the quick fix!
But, the same warning still occurs at the following lines.
Note: #define LGFX_USE_V1
produces tons of unused-result warnings.
Adding the -Wno-unused-result
flag may be a good idea as as @tobozo said.
build_with_LGFX_USE_V1.txt
@estshorter Sorry. Readjusted. I've tweaked the result library and fundamentally killed warnings.
Thanks! I've confirmed that LovyanGFX can be compiled without warnings (even when #define LGFX_USE_V1)!
Following compilation warnings occur when using GCC8.4 with C++17 enabled. I'm not sure this library supports C++17, but I reported this for your reference.
Note: This will not occur if the C++17 flag is not specified.
Code example
platformio.ini
src/main.cpp
Environment
Appendix
buildlog.txt