bind9/bin/dig
Ondřej Surý b222783ae9 Add small tweaks to the code to fix compilation when ISC assertions are disabled
While implementing the new unit testing framework cmocka, it was found that the
BIND 9 code doesn't compile when assertions are disabled or replaced with any
function (such as mock_assert() from cmocka unit testing framework) that's not
directly recognized as assertion by the compiler.

This made the compiler to complain about blocks of code that was recognized as
unreachable before, but now it isn't.

The changes in this commit include:

* assigns default values to couple of local variables,
* moves some return statements around INSIST assertions,
* adds __builtin_unreachable(); annotations after some INSIST assertions,
* fixes one broken assertion (= instead of ==)

(cherry picked from commit fbd2e47f51)
2018-11-08 14:05:23 +07:00
..
include/dig Replace custom isc_boolean_t with C standard bool type 2018-08-10 11:17:51 +02:00
win32 [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
dig.1 prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
dig.c Change the dig documentation 2018-11-07 11:32:56 +11:00
dig.docbook Change the dig documentation 2018-11-07 11:32:56 +11:00
dig.html prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
dighost.c Add small tweaks to the code to fix compilation when ISC assertions are disabled 2018-11-08 14:05:23 +07:00
host.1 prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
host.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 11:17:51 +02:00
host.docbook Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
host.html prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
Makefile.in Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:31:17 +02:00
nslookup.1 prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
nslookup.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 11:17:51 +02:00
nslookup.docbook Update the IDN documentation for nslookup 2018-11-07 11:32:56 +11:00
nslookup.html prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00