Code Monkey home page Code Monkey logo

Comments (2)

ddalcino avatar ddalcino commented on July 30, 2024

I made a pull request #10 that has some relevance to this issue.

On my branch, I specified that Travis-CI should use gcc-7 instead of gcc-5. This causes the vm to install GCC 7.4.0, which handles all of the specified compiler flags without any problem, and the build completes successfully. I claim that this is evidence that GCC 7.4.0 (I can't speak to version 7.3.x and below) supports the -Wduplicated-branches flag.

As far as I can tell, a CMakeLists.txt file does not have any way to tell you what compiler version you should be using: it either builds or it fails.

Maybe we could add a command line option that conditionally adds warning flags based on what compiler you specify? Alternately, you could use try_compile() to work out what warning flags are available on whatever compiler you're using, and set the warning flags accordingly.

from gui_starter_template.

ddalcino avatar ddalcino commented on July 30, 2024

Since the readme now recommends gcc 7 or above, I think this is resolved. If you disagree, you are welcome to reopen this.

from gui_starter_template.

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.