Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http: Avoid undefined behavior in va_arg conversion
Subtracting a null pointer is undefined behavior according to Clang 13 (-Wnull-pointer-subtraction). Avoid this by casting to intptr_t instead. Request macros (e.g. OP_GET_SERVER_INFO) already do a simple cast `((char*)_request)` rather than addition with null pointer `(_request+(char*)NULL)` so nothing needs to be changed on that end.
- Loading branch information