mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1905] [FIX] Fix MSVC warning C4098: void function returning a value in networking.c #2697
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1905
State: closed
Merged: Yes
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Description
This PR fixes multiple instances of compiler warning C4098 in
src/lib_ccx/networking.c.Several functions (
connect_to_srv,net_send_header, etc.) were declared asvoidbut were attempting to return values from internal function calls.Changes
Casted the return values of the internal Rust functions to (void) to suppress MSVC warning C4098.
Removed the explicit return; statements to ensure the subsequent C implementation is correctly executed (fixing a logic error where the C fallback was being skipped).
Environment