mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Silence "end-of-loop condition not reached" warnings from Solaris compiler
This commit is contained in:
@@ -55,7 +55,15 @@ static isc_boolean_t bind8_compat = ISC_TRUE; /* XXX config */
|
||||
#define JOURNAL_DEBUG_LOGARGS(n) \
|
||||
JOURNAL_COMMON_LOGARGS, ISC_LOG_DEBUG(n)
|
||||
|
||||
#define FAIL(code) do { result = (code); goto failure; } while (0)
|
||||
/*
|
||||
* It would be non-sensical (or at least obtuse) to use FAIL() with an
|
||||
* ISC_R_SUCCESS code, but the test is there to keep the Solaris compiler
|
||||
* from complaining about "end-of-loop code not reached".
|
||||
*/
|
||||
#define FAIL(code) \
|
||||
do { result = (code); \
|
||||
if (result != ISC_R_SUCCESS) goto failure; \
|
||||
} while (0)
|
||||
|
||||
#define CHECK(op) \
|
||||
do { result = (op); \
|
||||
|
Reference in New Issue
Block a user