Giter Site home page Giter Site logo

Comments (7)

cranor avatar cranor commented on June 12, 2024 2

libs are also affected by this compiler check.

Not the safest but simplest solution:

make menuconfig

  • compiler options
    • Disable new warnings introduced in GCC 6 - 8

from esp32-homekit-camera.

maximkulkin avatar maximkulkin commented on June 12, 2024

Looks like it's a new check in compiler added recently, should be fine to disable it with -Wno-error=sizeof-pointer-memaccess

from esp32-homekit-camera.

mcpat-it avatar mcpat-it commented on June 12, 2024

I will try with -Wno-error=sizeof-pointer-memaccess, do you know how to set this?

Now I used Windows with Mingw32 (acc. Docs Espressif) but with warnings during compilation:

WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-80-g6c4433a5
Expected to see version: esp32-2019r1
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 5.2.0
Expected to see version(s): 8.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.

from esp32-homekit-camera.

maximkulkin avatar maximkulkin commented on June 12, 2024

No, I do not do Windows support, sorry

from esp32-homekit-camera.

cranor avatar cranor commented on June 12, 2024

The secure way :

line 55 : strncpy(magic, magic1, sizeof(magic1)<sizeof(magic)?sizeof(magic1):sizeof(magic));
line 233 : strncpy(data.magic, magic1, sizeof(magic1)<sizeof(data.magic)?sizeof(magic1):sizeof(data.magic));

from esp32-homekit-camera.

maximkulkin avatar maximkulkin commented on June 12, 2024

Nope, not doing that. If you look at the code, magic IS defined to have size of magic1.

from esp32-homekit-camera.

maximkulkin avatar maximkulkin commented on June 12, 2024

I have already pushed a fix, should not complain now.

from esp32-homekit-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.