Announcement

Collapse
No announcement yet.

Gen4 IOD - GFX4D can't compile on VSCODE PlatformIO

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gen4 IOD - GFX4D can't compile on VSCODE PlatformIO

    I've trouble compiling GFX4D on PlatformIO. Here the log:

    Code:
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::begin()':
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:330:20: error: invalid cast from type 'SPISettings' to type 'uint32_t' {aka 'unsigned int'}
    330 | if(SD.begin(_sd, (uint32_t)spiSettings)){
    | ^~~~~~~~~~~~~~~~~~~~~
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::PrintImage(uint16_t)':
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:734:11: warning: unused variable 'tempfsh' [-Wunused-variable]
    734 | uint8_t tempfsh = fsh;
    | ^~~~~~~
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:737:12: warning: unused variable 'isize' [-Wunused-variable]
    737 | uint16_t isize = iwidth * iheight;
    | ^~~~~
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::DrawWidget(uint32_t, int16_t, int16_t, int16_t, int16_t, uint16_t, int16_t, bool, byte)':
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:833:12: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
    833 | if(isize > bufsize) steps = isize / bufsize;
    | ~~~~~~^~~~~~~~~
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::UserImage(uint16_t, int, int)':
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:905:7: warning: unused variable 'gciapos' [-Wunused-variable]
    905 | int gciapos = (ui) * 13;
    | ^~~~~~~
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::PrintImageFile(String)':
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1073:11: warning: unused variable 'dummy' [-Wunused-variable]
    1073 | uint8_t dummy = dataFile.read();
    | ^~~~~
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1074:11: warning: unused variable 'tempfsh' [-Wunused-variable]
    1074 | uint8_t tempfsh = fsh;
    | ^~~~~~~
    .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1076:12: warning: unused variable 'isize' [-Wunused-variable]
    1076 | uint16_t isize = iwidth * iheight;
    | ^~~~~
    ...
    | ^
    *** [.pio\build\esp12e\liba40\GFX4d\GFX4d.cpp.o] Error 1
    Here my environment:
    Code:
    [env:esp12e]
    platform = espressif8266
    board = gen4iod
    framework = arduino
    upload_speed = 115200
    platform_packages =
        platformio/framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git
        mcspr/[email protected]^5
    lib_deps =
        4dsystems/[email protected]^1.0.3
        ottowinter/[email protected]^0.8.5
        bakercp/[email protected]^2.0.0
        bblanchon/[email protected]^6.18.0
    Dependency graph:
    Code:
    PACKAGES:
    - framework-arduinoespressif8266 3.0.0-dev+sha.a886515
    - tool-esptool 1.413.0 (4.13)
    - tool-esptoolpy 1.30000.201119 (3.0.0)
    - toolchain-xtensa 5.100200.201223 (10.2.0)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 39 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- <GFX4d> 1.0.3
    | |-- <SD(esp8266)> 2.0.0
    | | |-- <SDFS> 0.1.0
    | | | |-- <ESP8266SdFat> 2.0.2
    | | | | |-- <SPI> 1.0
    | | | |-- <SPI> 1.0
    | |-- <ESP8266HTTPClient> 1.2
    | | |-- <ESP8266WiFi> 1.0
    | |-- <ESP8266WiFi> 1.0
    | |-- <SPI> 1.0
    |-- <AsyncMqttClient-esphome> 0.8.5
    | |-- <ESPAsyncTCP-esphome> 1.2.3
    |-- <CRC32> 2.0.0
    |-- <ArduinoJson> 6.18.0
    Can you please show me the way to make it works.

    I've tryed modified version of 4DGFX seen on other post.
    Last edited by Giamba_FR; 28 May 2021, 05:00 PM.

  • #2
    Hello,

    Welcome to the Forum

    Thank you for bringing this to our attention. It would seem that the latest ESP8266 Arduino core has recently been updated to 3.0.0 which I have just installed and there are many things that have changed causing many incompatibilities.

    I am not familiar with PlatformIO so I'm not sure if you can roll back to ESP8266 core 2.7.4 which is compatible. If this is possible could you please try it while I make the necessary changes to GFX4d.

    Best regards

    Paul

    Comment


    • #3
      Ok, I found how to change ESP8266 core version to PlatformIO.
      Just add #2.7.4 after the git repository in platform-packages.

      Code:
      [env:esp12e]
      platform = espressif8266
      board = gen4iod
      framework = arduino
      upload_speed = 115200
      platform_packages = 
          platformio/framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git[B]#2.7.4[/B]
          mcspr/[email protected]^5
      lib_deps = 
          ottowinter/[email protected]^0.8.5
          bakercp/[email protected]^2.0.0
          bblanchon/[email protected]^6.18.0
          4dsystems/[email protected]^1.0.3
      But I now have some new compilation issues with the WiFiClientSecureBearSSL.cpp

      So I'm stuck here for now until you do your great job. Not a big deal as I can continue to use 4DWorkshop.
      I'm using PlatformIO because it's easy to open multiple files to include their header, that I can't do with 4DWorkshop or ArduinoIDE.
      Thanks for all.

      Comment


      • #4
        Hi,

        The GFX4d library has now been updated to be compatible with core 3.0.0 and is also backwards compatible with earlier cores. I have attached the library for you to try and it will be available via Github shortly

        Best regards

        Paul
        Attached Files

        Comment


        • #5
          Hi,
          First try an it seems to compile. Thanks for all!
          Giamba

          Comment


          • #6
            Hi, I'm writeing to you to show you the compilations warnings, maybe the code can be better! Standards are C17 and C++17.

            [CODE].pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::PrintImage(uint16_t)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:826:11: warning: unused variable 'tempfsh' [-Wunused-variable]
            826 | uint8_t tempfsh = fsh;
            | ^~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:829:12: warning: unused variable 'isize' [-Wunused-variable]
            829 | uint16_t isize = iwidth * iheight;
            | ^~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::DrawWidget(uint32_t, int16_t, int16_t, int16_t, int16_t, uint16_t, int16_t, bool, byte)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:944:15: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
            944 | if (isize > bufsize) steps = isize / bufsize;
            | ~~~~~~^~~~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:889:7: warning: variable 'right' set but not used [-Wunused-but-set-variable]
            889 | int right = 0;
            | ^~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:890:7: warning: variable 'bottom' set but not used [-Wunused-but-set-variable]
            890 | int bottom = 0;
            | ^~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::UserImage(uint16_t, int, int)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1033:7: warning: unused variable 'gciapos' [-Wunused-variable]
            1033 | int gciapos = (ui) * 13;
            | ^~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::PrintImageFile(String)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1247:11: warning: unused variable 'dummy' [-Wunused-variable]
            1247 | uint8_t dummy = dataFile.read();
            | ^~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1248:11: warning: unused variable 'tempfsh' [-Wunused-variable]
            1248 | uint8_t tempfsh = fsh;
            | ^~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1250:12: warning: unused variable 'isize' [-Wunused-variable]
            1250 | uint16_t isize = iwidth * iheight;
            | ^~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::ImageWifi(boolean, String, uint16_t, String, String)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1397:12: warning: unused variable 'coldepth' [-Wunused-variable]
            1397 | uint16_t coldepth;
            | ^~~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1399:12: warning: unused variable 'len' [-Wunused-variable]
            1399 | uint32_t len = http.getSize();
            | ^~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1412:11: warning: unused variable 'tempfsh' [-Wunused-variable]
            1412 | uint8_t tempfsh = fsh;
            | ^~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::Open4dGFX(String)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1519:18: warning: unused variable 'tuiPos' [-Wunused-variable]
            1519 | uint32_t tuiPos = getCoordfromString(tempis, (12 + ofset));
            | ^~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1467:11: warning: unused variable 'um' [-Wunused-variable]
            1467 | uint8_t um;
            | ^~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1535:7: warning: variable 'coldepth' set but not used [-Wunused-but-set-variable]
            1535 | int coldepth;
            | ^~~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::newLine(int8_t, int8_t, uint16_t)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1634:14: warning: variable 'offset' set but not used [-Wunused-but-set-variable]
            1634 | uint16_t offset = 0;
            | ^~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d:rawChar2tw(int16_t, int16_t, unsigned char, uint16_t, uint16_t, uint8_t)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:1905:12: warning: unused variable 'tfval' [-Wunused-variable]
            1905 | uint32_t tfval;
            | ^~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::TWwrite(char)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2081:27: warning: comparison of integer expressions of different signedness: 'int' and 'uint' {aka 'unsigned int'} [-Wsign-compare]
            2081 | for (int o = 0; o < (tcnt - ccpos); o++)
            | ~~^~~~~~~~~~~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2165:13: warning: variable 'drawspc1' set but not used [-Wunused-but-set-variable]
            2165 | boolean drawspc1;
            | ^~~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2166:13: warning: unused variable 'drawspc2' [-Wunused-variable]
            2166 | boolean drawspc2;
            | ^~~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::TWcls()':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2245:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
            2245 | for (int n = 0; n < sizeof(txtbuf); n ++)
            | ~~^~~~~~~~~~~~~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'uint16_t GFX4d::ReadPixel(uint16_t, uint16_t)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2637:12: warning: unused variable 'dcol' [-Wunused-variable]
            2637 | uint16_t dcol = SPI.transfer(0);
            | ^~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::ChangeColor(uint16_t, uint16_t)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2689:16: warning: unused variable 'dcol1' [-Wunused-variable]
            2689 | uint32_t dcol1;
            | ^~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2648:12: warning: unused variable 'tdw' [-Wunused-variable]
            2648 | uint32_t tdw;
            | ^~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2650:18: warning: unused variable 'tcol1' [-Wunused-variable]
            2650 | uint16_t tcol, tcol1;
            | ^~~~~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::WrGRAMs8(uint8_t*, uint16_t, byte)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2807:25: warning: operation on 'data' may be undefined [-Wsequence-point]
            2807 | tdw = (*data++ << 24) + (*data++ << 16);
            | ~~~~^~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2815:31: warning: operation on 'data' may be undefined [-Wsequence-point]
            2815 | tdw = tdw + (*data++ << 8) + (*data++);
            | ~~~~^~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2815:31: warning: operation on 'data' may be undefined [-Wsequence-point]
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2825:59: warning: operation on 'data' may be undefined [-Wsequence-point]
            2825 | tdw = (*data++ << 24) + (*data++ << 16) + (*data++ << 8) + *data++;
            | ~~~~^~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2825:59: warning: operation on 'data' may be undefined [-Wsequence-point]
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2825:59: warning: operation on 'data' may be undefined [-Wsequence-point]
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2825:59: warning: operation on 'data' may be undefined [-Wsequence-point]
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2832:21: warning: operation on 'data' may be undefined [-Wsequence-point]
            2832 | tdy = (*data++ << 8) + *data++;
            | ~~~~^~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2832:21: warning: operation on 'data' may be undefined [-Wsequence-point]
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2845:32: warning: operation on 'data' may be undefined [-Wsequence-point]
            2845 | tdw = (RGB3322565[*data++] << 16) + RGB3322565[*data++];
            | ~~~~^~
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::Buttonx(uint8_t, int16_t, int16_t, int16_t, int16_t, uint16_t, String, int8_t, uint16_t)':
            .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:3119:11: warning: unused variable 'nlbckp' [-Wunused-variable]
            3119 | boolean nlbckp = nl;
            | ^~~~~~
            .

            Comment


            • #7
              pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d:​rawButton(uint8_t, int16_t, int16_t, int16_t, int16_t, uint16_t, String, int8_t, int8_t, int8_t, uint16_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:3232:21: warning: unused variable 'gr1' [-Wunused-variable]
              3232 | int nh, g1, g2, gr1, gr2, nw;
              | ^~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:3232:26: warning: unused variable 'gr2' [-Wunused-variable]
              3232 | int nh, g1, g2, gr1, gr2, nw;
              | ^~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::ButtonDown(int)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:3341:12: warning: unused variable '_light' [-Wunused-variable]
              3341 | uint16_t _light = tcol & 0xffff;
              | ^~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::ButtonUp(int)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:3395:19: warning: variable 'g2' set but not used [-Wunused-but-set-variable]
              3395 | int nh, g1, g2, gr1, gr2, nw;
              | ^~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:3395:23: warning: unused variable 'gr1' [-Wunused-variable]
              3395 | int nh, g1, g2, gr1, gr2, nw;
              | ^~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:3395:28: warning: unused variable 'gr2' [-Wunused-variable]
              3395 | int nh, g1, g2, gr1, gr2, nw;
              | ^~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'boolean GFX4d::touch_Update()':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:3781:16: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare]
              3781 | if (millis() >= touchTime && (millis() - touchTime) < 18) return false;
              | ~~~~~~~~~^~~~~~~~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:3840:9: warning: unused variable 'tstgPEN' [-Wunused-variable]
              3840 | int tstgPEN = dattouch[0];
              | ^~~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::UserCharacter(uint32_t*, uint8_t, int16_t, int16_t, uint16_t, uint16_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4023:37: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
              4023 | test2 = (tdw >> (ucwidth - 1) - left) & 0x1;
              | ~~~~~~~~~~~~~~^~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4027:37: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
              4027 | test2 = (tdw >> (ucwidth - 1) - left) & 0x1;
              | ~~~~~~~~~~~~~~^~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4044:37: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
              4044 | test2 = (tdw >> (ucwidth - 1) - left) & 0x1;
              | ~~~~~~~~~~~~~~^~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4058:37: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
              4058 | test2 = (tdw >> (ucwidth - 1) - left) & 0x1;
              | ~~~~~~~~~~~~~~^~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::UserImageDR(uint16_t, int16_t, int16_t, int16_t, int16_t, int16_t, int16_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4086:11: warning: unused variable 'setemp' [-Wunused-variable]
              4086 | boolean setemp = sEnable;
              | ^~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4088:7: warning: unused variable 'gciapos' [-Wunused-variable]
              4088 | int gciapos = (ui) * 13;
              | ^~~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4112:12: warning: unused variable 'isize' [-Wunused-variable]
              4112 | uint32_t isize = tuiw[ui] * tuih[ui];
              | ^~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::UserCharacterBG(uint32_t*, uint8_t, int16_t, int16_t, uint16_t, boolean, uint32_t, bool, int8_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4288:35: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
              4288 | test2 = (tdw >> (ucwidth - 1) - left) & 0x1;
              | ~~~~~~~~~~~~~~^~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4307:35: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
              Compiling .pio\build\esp12e\FrameworkArduino\FunctionalInterrupt.cpp.o
              4307 | test2 = (tdw >> (ucwidth - 1) - left) & 0x1;
              | ~~~~~~~~~~~~~~^~~~~~
              Compiling .pio\build\esp12e\FrameworkArduino\HardwareSerial.cpp.o
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4331:16: warning: unused variable 'test' [-Wunused-variable]
              Compiling .pio\build\esp12e\FrameworkArduino\IPAddress.cpp.o
              4331 | uint32_t test = 2 ^ (ucwidth - 1);
              | ^~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4257:12: warning: variable 'bheight' set but not used [-Wunused-but-set-variable]
              4257 | uint16_t bheight;
              | ^~~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4270:11: warning: unused variable 'top' [-Wunused-variable]
              4270 | uint8_t top = 0;
              | ^~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4282:12: warning: unused variable 'test' [-Wunused-variable]
              4282 | uint32_t test = 2 ^ (ucwidth - 1);
              | ^~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::Download(String, uint16_t, String, String, String)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4366:7: warning: unused variable 'cstream' [-Wunused-variable]
              4366 | int cstream;
              | ^~~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::RGB2HLS()':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4531:11: warning: unused variable 'tmaxmin' [-Wunused-variable]
              4531 | uint8_t tmaxmin;
              | ^~~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::WrGRAMs16232(uint16_t*, uint16_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4680:17: warning: operation on 'data' may be undefined [-Wsequence-point]
              4680 | tdw = (*data++ << 16) + *data++;
              | ~~~~^~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4680:17: warning: operation on 'data' may be undefined [-Wsequence-point]
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::WrGRAMs16232NT(uint16_t*, uint16_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4696:17: warning: operation on 'data' may be undefined [-Wsequence-point]
              4696 | tdw = (*data++ << 16) + *data++;
              | ~~~~^~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4696:17: warning: operation on 'data' may be undefined [-Wsequence-point]
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::SetSprite(int, bool, int, int, uint16_t, uint16_t*)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4998:7: warning: unused variable 'sacoords' [-Wunused-variable]
              4998 | int sacoords[6];
              | ^~~~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4999:7: warning: unused variable 'rx' [-Wunused-variable]
              4999 | int rx = 0xffff;
              | ^~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5000:7: warning: unused variable 'ry' [-Wunused-variable]
              5000 | int ry = 0xffff;
              | ^~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'int16_t GFX4d::ImageTouchedAuto(int)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4820:1: warning: control reaches end of non-void function [-Wreturn-type]
              4820 | }
              | ^
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'uint16_t GFX4d::GetSliderValue(uint16_t, uint8_t, uint16_t, uint16_t, uint16_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4855:1: warning: control reaches end of non-void function [-Wreturn-type]
              4855 | }
              | ^
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::RoundRectFilled(int16_t, int16_t, int16_t, int16_t, int16_t, uint16_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:513:19: warning: 'maxR' may be used uninitialized in this function [-Wmaybe-uninitialized]
              513 | if (r > maxR) r = maxR;
              | ~~^~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d:​rawChar1(int16_t, int16_t, unsigned char, uint16_t, uint16_t, uint8_t, uint8_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2403:22: warning: 'crad' may be used uninitialized in this function [-Wmaybe-uninitialized]
              2403 | if (sizew > 3)crad --;
              | ~~~~~^~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:2446:42: warning: 'co' may be used uninitialized in this function [-Wmaybe-uninitialized]
              2446 | CircleFilled(x + (i * sizew) + co, y + (j * sizeht) + co, crad / 3, WHITE);
              | ~~~~~~~~~~~~~~~~^~~~
              Compiling .pio\build\esp12e\FrameworkArduino\LwipDhcpServer-NonOS.cpp.o
              Compiling .pio\build\esp12e\FrameworkArduino\LwipDhcpServer.cpp.o
              Compiling .pio\build\esp12e\FrameworkArduino\LwipIntf.cpp.o
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'int GFX4d::DecodeKeypad(int, int, byte*, int8_t*)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4863:18: warning: 'koff' may be used uninitialized in this function [-Wmaybe-uninitialized]
              4863 | if (caps) koff = koff + (2 * kbck[10]);
              | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'bool GFX4d::SpriteInit(uint16_t*, size_t)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:4943:7: warning: 'sdatpos' may be used uninitialized in this function [-Wmaybe-uninitialized]
              4943 | int sdatpos;
              | ^~~~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::UpdateSprites(uint16_t, uint16_t*)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5142:11: warning: 'cscolor' may be used uninitialized in this function [-Wmaybe-uninitialized]
              5142 | if (cscolor != tscolor)
              | ^~
              Compiling .pio\build\esp12e\FrameworkArduino\LwipIntfCB.cpp.o
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp: In member function 'void GFX4d::gradientShape(int, int, int, int, int, int, int, int, int, int, uint16_t, int, int, uint16_t, int, int, int)':
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5383:56: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
              5383 | int fill, yb, Lfill, Rfill, Ldw, Rdw, Lw, Rw, mfill, start, fin, fCmp;
              | ^~~~~
              .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5643:19: warning: 'hm' may be used uninitialized in this function [-Wmaybe-uninitialized]
              5643 | tgrad = Grad(sr1, darken, gl1, hm, mfill, color);
              | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

              Comment


              • #8
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5453:13: warning: 'lasty' may be used uninitialized in this function [-Wmaybe-uninitialized]
                5453 | if (lasty != y)
                | ^~
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5547:117: warning: 'gof' may be used uninitialized in this function [-Wmaybe-uninitialized]
                5547 | if (sr3 > -1 && ((owSet && xc2 < xc3) || (rtSide && owSet && xc2 > xc3))) HlineD(yc1, xc2, xc3, Grad(sr3, darken, gl3, hmd, ya + gof, colorD));
                | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5381:97: warning: 'gradofs' may be used uninitialized in this function [-Wmaybe-uninitialized]
                5381 | int c, xx, yy, x, y, c1, xx1, yy1, xin, y1, lasty1, sCxPos, owMin, owMax, mirror, dbl1, dbl2, gradofs, hmd, gof, owSet, rtSide;
                | ^~~~~~~
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5442:15: warning: 'lasty1' may be used uninitialized in this function [-Wmaybe-uninitialized]
                5442 | if (lasty1 != y1)
                | ^~
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5430:42: warning: 'lastow' may be used uninitialized in this function [-Wmaybe-uninitialized]
                5430 | lachk = (lastarc != radsGS[arcn] || lastow != ow);
                | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5430:42: warning: 'lastarc' may be used uninitialized in this function [-Wmaybe-uninitialized]
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5611:23: warning: 'xgxr' may be used uninitialized in this function [-Wmaybe-uninitialized]
                5611 | HlineD(yc1, xgxl, xgxr, GSSBGColor);
                | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5596:33: warning: 'xgxl' may be used uninitialized in this function [-Wmaybe-uninitialized]
                5596 | if (drgs) HlineD(yc1, xgxl, xgxr, GSSBGColor);
                | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5555:40: warning: 'yc1' may be used uninitialized in this function [-Wmaybe-uninitialized]
                5555 | Compiling .pio\build\esp12e\FrameworkArduino\MD5Builder.cpp.o
                if (xc1 < xc2) HlineD(yc1, xc1, xc2Compiling .pio\build\esp12e\FrameworkArduino\Print.cpp.o
                , tgrad);
                | ~~~~~~^~~~~~~~~~~~~Archiving .pio\build\esp12e\liba40\libGFX4d.a
                ~~~~~~~~~
                Compiling .pio\build\esp12e\FrameworkArduino\Schedule.cpp.o
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5380:18: warning: 'xc2' may be used uninitialized in this function [-Wmaybe-uninitialized]
                5380 | int arcn, xc1, xc2, xc3, xc4, yc1, mi, cDraw, xgxl, xgxr, tcount, tgss1, tgss2, drgs, yag, lastarc, lastow, lachk;
                | ^~~
                .pio\libdeps\esp12e\GFX4d\src\GFX4d.cpp:5575:21: warning: 'xc1' may be used uninitialized in this function [-Wmaybe-uninitialized][/CODE]

                Comment


                • #9
                  Hi,

                  I installed PlatformIO yesterday and noticed the same. I am looking into it and I am sure this can be remedied.

                  Best regards

                  Paul

                  Comment


                  • #10
                    Hi,

                    Could you please try the attached.
                    Some warnings turned out to be false with regard to unused variables so you may see some re-appear.
                    Parenthesis warnings haven't been altered.

                    Best regards

                    Paul
                    Attached Files

                    Comment

                    Working...
                    X