Code Monkey home page Code Monkey logo

Comments (5)

DuffsDevice avatar DuffsDevice commented on July 26, 2024

Hi Stuart,

Thank you for your message!
I'd be quite willing to accept such a change and would welcome a pull request 😃
However, I'd like to override the warning on a per-case basis. How many times does the warning occour? If it is less than let's say 3 times, I'd indeed prefer a per-case fix, with a small explanation of why the variable must have been initialized at each very point.
What do you think?

Best Regards,
Jakob

from tiny-utf8.

bakerstu avatar bakerstu commented on July 26, 2024

Yes, your suggested approach seems reasonable, and much more safe long term. I'll work on a pull request.

from tiny-utf8.

DuffsDevice avatar DuffsDevice commented on July 26, 2024

Cool, thanks a lot!

from tiny-utf8.

bakerstu avatar bakerstu commented on July 26, 2024

@DuffsDevice I spent a little bit of time on this, and I realized that fixing this with decreased scope, as you have suggested, started to get quite messy. I decided instead to simply disable forcing -Wmaybe-uninitialized to an error, and revert it back to only a warning, and only for the scope of a single header file.

Pull request #31.

from tiny-utf8.

DuffsDevice avatar DuffsDevice commented on July 26, 2024

Dear Stuart,

thanks for your efforts at exploring this direction. When I wanted to apply your solution, I realized, that GCC diagnostic warning will add the warning even if "-Wno-maybe-uninitialized" is being passed through the command line, kinda pittyful.
I guess, you convinced me, that the first solution you suggested in this issue is the right 😜.

Thanks a lot!
Jakob

Closed by Merging #31 in Commit 5827159

from tiny-utf8.

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.