Git Product home page Git Product logo

Comments (4)

subject546 avatar subject546 commented on May 13, 2024 1

Great I have submitted a pull request for this, this was not really a pressing issue but I will try to help where I can..

from exengine.

solenum avatar solenum commented on May 13, 2024
GLint ex_uniform_map[256][256] = {0}; 

What actually happens here is that the first element of the array is set to the value in the braces, in this case it would be 0. After this, the rest of the array is initialized to 0 by default. If I where to set that value to say, 1. The first element of the array would be 1 while the rest would again be initialized to 0 by default.

Your solution does indeed remove the warning, without any logic actually changing.

note that = {0} has been valid since c98, I believe

from exengine.

subject546 avatar subject546 commented on May 13, 2024

Ah alright if it's valid c I guess it's fine. And I will close this comment for that.
However one could still argue that the double curly bracket is "more readable", hence why it is probably a compile warning over a compile error.

from exengine.

solenum avatar solenum commented on May 13, 2024

@subject546 feel free to submit a PR though, if not I'll get around to it eventually. I'm currently focusing on other aspects of the engine.

from exengine.

Related Issues (16)

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.