Git Product home page Git Product logo

Comments (7)

dtikhonov avatar dtikhonov commented on May 18, 2024

Thank you for the report. Would you mind pasting a few more lines of the compiler error output, please?

from lsquic.

sergePSE avatar sergePSE commented on May 18, 2024

My full output.
`Sure. My full output.

[ 1%] Building C object src/liblsquic/CMakeFiles/lsquic.dir/lsquic_chsk_stream.c.o
In file included from /home/sergei/Documents/git/lsquic-client/src/liblsquic/lsquic_chsk_stream.c:27:0:
/home/sergei/Documents/git/lsquic-client/src/liblsquic/lsquic_chsk_stream.c: In function ‘hsk_client_on_read’:
/home/sergei/Documents/git/lsquic-client/src/liblsquic/lsquic_logger.h:129:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
if (LSQ_LOG_ENABLED(level))
^
/home/sergei/Documents/git/lsquic-client/src/liblsquic/lsquic_logger.h:162:24: note: in expansion of macro ‘LSQ_LOG2’

define LSQ_LOG LSQ_LOG2

                    ^~~~~~~~

/home/sergei/Documents/git/lsquic-client/src/liblsquic/lsquic_logger.h:173:26: note: in expansion of macro ‘LSQ_LOG’
#define LSQ_WARN(...) LSQ_LOG(LSQ_LOG_WARN, __VA_ARGS__) ^~~~~~~ /home/sergei/Documents/git/lsquic-client/src/liblsquic/lsquic_chsk_stream.c:119:9: note: in expansion of macro ‘LSQ_WARN’ LSQ_WARN("lsquic_enc_session_handle_chlo_reply returned unknown value %d", s); ^~~~~~~~ /home/sergei/Documents/git/lsquic-client/src/liblsquic/lsquic_chsk_stream.c:120:5: note: here case DATA_FORMAT_ERROR: ^~~~ cc1: all warnings being treated as errors src/liblsquic/CMakeFiles/lsquic.dir/build.make:134: recipe for target 'src/liblsquic/CMakeFiles/lsquic.dir/lsquic_chsk_stream.c.o' failed make[2]: *** [src/liblsquic/CMakeFiles/lsquic.dir/lsquic_chsk_stream.c.o] Error 1 CMakeFiles/Makefile2:172: recipe for target 'src/liblsquic/CMakeFiles/lsquic.dir/all' failed make[1]: *** [src/liblsquic/CMakeFiles/lsquic.dir/all] Error 2 Makefile:94: recipe for target 'all' failed make: *** [all] Error 2

from lsquic.

dtikhonov avatar dtikhonov commented on May 18, 2024

I see, it's this code:

    default:
        LSQ_WARN("lsquic_enc_session_handle_chlo_reply returned unknown value %d", s);
    case DATA_FORMAT_ERROR:
        LSQ_INFO("lsquic_enc_session_handle_chlo_reply returned an error");

We want it to fall through. I wonder what the new gcc wants from us here? 🤔

from lsquic.

dtikhonov avatar dtikhonov commented on May 18, 2024

I suspect this will be a whack-a-mole going forward. Perhaps the thing to do is to remove -Werror.

from lsquic.

dtikhonov avatar dtikhonov commented on May 18, 2024

Bing finds this:

https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/

Boy, talk about hand-holding...

from lsquic.

sergePSE avatar sergePSE commented on May 18, 2024

Thank you for your response, I've disabled a flag -Werror, but you had a comment, that you want prevent warnings. As I understand we should add explicit comments.

from lsquic.

litespeedtech avatar litespeedtech commented on May 18, 2024

These warnings have been addressed: see pull request #26.

from lsquic.

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.