Closed lshamis closed 3 years ago
This is not an error - do you compile with warnings as errors?
external/uwebsockets/src/WebSocketContextData.h:39:22: note: and the implicitly-defined constructor does not initialize 'unsigned int uWS::WebSocketContextData<false>::MessageMetadata::length'
unsigned int length;
^~~~~~
That's the culprit. But this is totally allowed.
I've gone through and confirmed that you fully populate all instances of MessageMetadata
before reading the values, so no uninitialized-memory issues.
@alexhultman are you open to PRs that cleanup warnings?
Thanks, and we can close this.
All warnings (not pedantic) should be fixed, but not at the cost of adding overhead.
GCC 9 does not show this warning in -Wextra
Neither does Clang 10
Fixed on master
The following program fails to compile:
Compiler output:
This was built with:
uwebsockets
at commit2d65df86c7988f5d9afa826cfbceda332f06f6a4
usockets
at commit7683672d87067cd75b854f4e36b9820f4809a4be
but the same error occurs going back at least
v18.3.0
This was tested with the default gcc on Ubuntu Bionic (gcc version
7.5.0
)