Comments (7)
Thank you for the report. Would you mind pasting a few more lines of the compiler error output, please?
from lsquic.
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.
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.
I suspect this will be a whack-a-mole going forward. Perhaps the thing to do is to remove -Werror
.
from lsquic.
Bing finds this:
https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
Boy, talk about hand-holding...
from lsquic.
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.
These warnings have been addressed: see pull request #26.
from lsquic.
Related Issues (20)
- Import lsquic to cmake project
- How to resolve error in v2.8.9 ? HOT 1
- How to use the connection migration
- Compilation error
- inexplicable packet loss with loopback communication
- failed to build on windows HOT 1
- QLOG
- Support for Wordpress.com HOT 1
- Failed to build on linux
- consider building and pushing interop runner image in CI HOT 1
- `Make` Failed In Ubuntu(VMware) HOT 3
- Whether there are plans to support FEC or mutipath HOT 1
- Conan Support
- h3 do not send CONNECTION_CLOSE frame on lossy connections HOT 4
- any safeguard against http2 rapid reset? HOT 1
- fail to compile with errors inside ubuntu 22.04 docker HOT 1
- using master version of boringssl and lsquic, handshake failed (unknown library) HOT 1
- how to close http mode HOT 2
- Docker build fail with boringssl errror
- Connection timeout (AL_HANDSHAKE) on loss of first packet. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsquic.