Code Monkey home page Code Monkey logo

Comments (4)

mdb256 avatar mdb256 commented on June 5, 2024

Thanks for pointing this out. We do test older versions of boost, but also need to test that against a wider range of compilers.

This is only a warning, so we can wait to fix this in the next release. We don't enable -Werror for default builds (RelWithDebInfo) - so that newer/different compilers don't cause unnecessary failures - but do enable it for CMAKE_BUILD_TYPE=Debug builds for use in development.

from hyperscan.

fgsch avatar fgsch commented on June 5, 2024

I was compiling a Debug build.
It should be trivial to only enable this for clang and GCC. Let me know I can update the PR.

from hyperscan.

mdb256 avatar mdb256 commented on June 5, 2024

Looking at it a little more: for this particular case it makes more sense to test the compiler for the presence of the warning flag, and then apply it only when building the unit tests - just as we have in CMakeLists.txt and unit/CMakeLists.txt for the use of -Wno-unused-variable. That means it should work on whichever compiler can generate that warning.

(It is more a pity that this isn't a warning that can be ignored by using -isystem on Boost headers - the problem is that macro is expanded in our code, not the header, so -isystem doesn't save us.)

We shouldn't be disabling this warning generally - we want to pick up if we have this in our code base. Whether we have -Werror for all public builds is something else we will consider.

from hyperscan.

fgsch avatar fgsch commented on June 5, 2024

Ok, I will change the PR to follow suit.

from hyperscan.

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.