Coder Social home page Coder Social logo

Comments (4)

Nable80 avatar Nable80 commented on September 28, 2024

Don't blame your compiler for these warnings, please.
It does the right thing™ and it's better to fix the code instead (data[] instead of data[0]).

from bluepill-serial-monster.

r2axz avatar r2axz commented on September 28, 2024

Fair point, data[] is by any means the cleanest way to define flexible size arrays. Please test the linked PR.

As for the compiler version, I use arm-none-eabi-gcc (GNU Arm Embedded Toolchain 9-2020-q2-update) 9.3.1 20200408 (release) on my Mac which I use for development, and gcc-arm-none-eabi_15%3a9-2019-q4-0ubuntu1_amd64, which is used in GitHub actions. None of them shows this warning.

from bluepill-serial-monster.

iDoka avatar iDoka commented on September 28, 2024

I checked your PR.
Now gcc-arm-none-eabi-10-2020-q4-major works fine without any warnings.

Thanks for your quick fix!

from bluepill-serial-monster.

r2axz avatar r2axz commented on September 28, 2024

Thank you!

from bluepill-serial-monster.

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.