mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 22:57:08 +00:00
- Fix clang analyzer for optimize compile analysis.
git-svn-id: file:///svn/unbound/trunk@4922 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b09cfb8fb1
commit
c85ff492d0
@ -1,6 +1,7 @@
|
||||
2 October 2018: Wouter
|
||||
- updated contrib/fastrpz.patch to apply for this version
|
||||
- dnscrypt.c removed sizeof to get array bounds.
|
||||
- Fix clang analyzer for optimize compile analysis.
|
||||
|
||||
1 October 2018: Wouter
|
||||
- tag for release 1.8.1rc1.
|
||||
|
@ -201,8 +201,13 @@ void log_vmsg(int pri, const char* type, const char* format, va_list args);
|
||||
} while(0);
|
||||
#endif
|
||||
#else
|
||||
#ifdef __clang_analyzer__
|
||||
/* tell clang analyzer that the code path with !x is not there */
|
||||
#define log_assert(x) if(!(x)) fatal_exit("error")
|
||||
#else
|
||||
# define log_assert(x) /*nothing*/
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_WINSOCK
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user