You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
home/reimu/esp/lovyangfx-test/components/LovyanGFX/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp: In member function 'virtual void lgfx::v1::Bus_SPI::endRead()':
/home/reimu/esp/lovyangfx-test/components/LovyanGFX/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp:847:5: error: array subscript 0 is outside array bounds of 'volatile uint32_t [0]' [-Werror=array-bounds=]
847 | *reg(SPI_PIN_REG(_spi_port)) = pin;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: note: source object is likely at address zero
/home/reimu/esp/lovyangfx-test/components/LovyanGFX/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp: In member function 'virtual void lgfx::v1::Bus_SPI::beginRead()':
/home/reimu/esp/lovyangfx-test/components/LovyanGFX/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp:836:5: error: array subscript 0 is outside array bounds of 'volatile uint32_t [0]' [-Werror=array-bounds=]
836 | *reg(SPI_PIN_REG(_spi_port)) = pin;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: note: source object is likely at address zero
/home/reimu/esp/lovyangfx-test/components/LovyanGFX/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp: In member function 'virtual void lgfx::v1::Bus_SPI::beginTransaction()':
/home/reimu/esp/lovyangfx-test/components/LovyanGFX/src/lgfx/v1/platforms/esp32/Bus_SPI.cpp:234:5: error: array subscript 0 is outside array bounds of 'volatile uint32_t [0]' [-Werror=array-bounds=]
234 | *reg(SPI_PIN_REG(spi_port)) = pin;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: note: source object is likely at address zero
cc1plus: some warnings being treated as errors
Carefully written Issues are more likely to be given priority.
丁寧に記述された報告は優先して対応される可能性が高くなります。
Environment ( 実行環境 )
Problem Description ( 問題の内容 )
LovyanGFXをコンパイルしようとしたときに、Compiler Options->Optimization Levelが-O2だと、コンパイルが通らなくなる。
が、-Og(デフォルト設定)だと、コンパイルが通る。
WARNの設定が問題だとは思われるが、なぜこのエラーが出るのか不明・・・。
Expected Behavior ( 期待される動作 )
コンパイルが通り、正常動作する。
Actual Behavior ( 実際の動作 )
以下のエラーが出る
Steps to reproduce ( 再現のための前提条件 )
(export.shでPATHを通しておく)
Code to reproduce this issue ( 再現させるためのコード )
Please submit complete source code that can reproduce your problem.
あなたの問題を再現できる完全なソースコードを提示してください。
(空っぽの状態で起きるため、割愛)
The text was updated successfully, but these errors were encountered: