Repository navigation
Conversation
|
@vaezim It looks like you accidentally changed code completely unrelated to the |
Those variables were shadowed by another variable in the outer scopes. Either outer scope variable or local ones needed renaming. Do you have other solutions? we can clear the outer one and reuse it. |
If that's the case, then it would be best to rename them to something more appropriate, without the underscore prefix, since by convention that makes them appear as class member variables, which they are not. If it is possible to re-use the outer-scope variables, then that is also a solution, but all code paths should be considered to ensure it is safe to re-use them. |
|
Removed underscores and renamed according to scope context. |
IXWebSocket and the CLI could not be built with
-Werror -Wshadowbecause local variables hid request streams, error variables, lock guards, CLI options, and the Network.framework receive-error field.Update the shadow-warning cleanup for current master and remove unused outer streams. Apply compiler warnings privately to
ixwebsocketandws, withIXWEBSOCKET_WARNINGS_AS_ERRORSoff by default. This avoids imposing fatal warnings on normal builds, vendored dependencies, or consumers. Unix GCC/Clang builds enable-Wshadow; the redundant explicit-Wunusedflag is unnecessary alongside-Wall -Wextra.Linux CI now runs
make -f makefile.dev test WARNINGS_AS_ERRORS=ON, which also builds the CLI. The normal make target keeps warnings nonfatal. Document the CMake option and developer command.Merged current master and resolved the HTTP-server and transport conflicts, preserving the case-insensitive Upgrade handling, stable TLS pending-write batches, and recent close-state fixes. Production code remains C++11 compatible.
Closes #531.
Validation:
git diff --checkpass.