mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Fixing /W4 warnings for Windows builds.
Removing all of the /W4 level warnings from the code. No functional changes. Signed-off-by: Pawel Winogrodzki <pawelwi@microsoft.com>
This commit is contained in:
1 parent
b425b150c2
commit
9adc4eb6a7
14 files changed
+162
-82
No files matched your search
@@ -32,6 +32,13 @@ extern int coap_fls(unsigned int i);
|
||||
#define coap_fls(i) fls(i)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FLSLL
|
||||
/* include this only if flsll() is not available */
|
||||
extern int coap_flsll(long long i);
|
||||
#else
|
||||
#define coap_flsll(i) flsll(i)
|
||||
#endif
|
||||
|
||||
/* ls and s must be integer variables */
|
||||
#define COAP_PSEUDOFP_ENCODE_8_4_DOWN(v,ls) (v < HIBIT ? v : (ls = coap_fls(v) - Nn, (v >> ls) & MMASK) + ls)
|
||||
#define COAP_PSEUDOFP_ENCODE_8_4_UP(v,ls,s) (v < HIBIT ? v : (ls = coap_fls(v) - Nn, (s = (((v + ((1<<ENCODE_HEADER_SIZE<<ls)-1)) >> ls) & MMASK)), s == 0 ? HIBIT + ls + 1 : s + ls))
|
||||
|
||||
Reference in new issue
Block a user