Commit 2a9a2e1e authored by Florian Oetke's avatar Florian Oetke
Browse files

fixed problems with scan-build and enet

parent 6b800ce1
......@@ -318,6 +318,7 @@ enet_range_coder_compress (void * context, const ENetBuffer * inBuffers, size_t
ENET_CONTEXT_ENCODE (root, symbol, value, under, count, ENET_CONTEXT_SYMBOL_DELTA, ENET_CONTEXT_SYMBOL_MINIMUM);
* parent = symbol - rangeCoder -> symbols;
parent = & symbol -> parent;
(void) parent;
total = root -> total;
#ifdef ENET_CONTEXT_EXCLUSION
if (childContext -> total > ENET_SUBCONTEXT_SYMBOL_DELTA + ENET_SUBCONTEXT_ESCAPE_DELTA)
......
......@@ -55,8 +55,10 @@
#endif
#ifndef HAS_SOCKLEN_T
#ifndef __clang_analyzer__
typedef int socklen_t;
#endif
#endif
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment