From: Alan T. DeKok Date: Tue, 23 Feb 2021 15:15:31 +0000 (-0500) Subject: add NDEBUG to shut up compiler X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f3fc255dc4dbc860a3ca644e0cd77a10b5b4ba9;p=thirdparty%2Ffreeradius-server.git add NDEBUG to shut up compiler --- diff --git a/src/lib/server/virtual_servers.c b/src/lib/server/virtual_servers.c index fceecab507e..e46f150fe31 100644 --- a/src/lib/server/virtual_servers.c +++ b/src/lib/server/virtual_servers.c @@ -265,6 +265,7 @@ static int namespace_on_read(UNUSED TALLOC_CTX *ctx, UNUSED void *out, UNUSED vo * only uses the CONF_SECTION for printing. */ module = dl_module(server_cs, NULL, namespace, DL_MODULE_TYPE_PROCESS); +#ifndef NDEBUG if (module) { fr_process_module_t const *process = (fr_process_module_t const *) module->common; @@ -280,6 +281,7 @@ static int namespace_on_read(UNUSED TALLOC_CTX *ctx, UNUSED void *out, UNUSED vo fr_assert(process->dict); fr_assert(*process->dict == dict); } +#endif cf_data_add(server_cs, module, "process module", true); return 0;