Coder Social home page Coder Social logo

Some warnings about qr-code-generator HOT 3 CLOSED

nayuki avatar nayuki commented on July 18, 2024
Some warnings

from qr-code-generator.

Comments (3)

nayuki avatar nayuki commented on July 18, 2024 1

Thanks for providing the diagnostic information. I understand what the warnings are complaining about.

In all cases mentioned, the uninitialized variable or undefined return value are impossible by design. The undefined case is always covered by an assert(false); statement - although assertions can be bypassed, so it could be a no-op instead of stopping the program. I have extensively tested the qrcodegen library to confirm that the assert(false); code path is never triggered.

I will have to give some thought about how to fix these compile-time warnings in the most reasonable way. Maybe I'll use exit(1);, or give dummy default values, or use an infinite loop.

from qr-code-generator.

redmanmale avatar redmanmale commented on July 18, 2024 1

@nayuki
All warnings are gone! Thank you!

from qr-code-generator.

nayuki avatar nayuki commented on July 18, 2024

Fixed in 30a9474 . Please try it in your development environment and report back whether the warning messages are gone.

from qr-code-generator.

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.