]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add NDEBUG to shut up compiler
authorAlan T. DeKok <aland@freeradius.org>
Tue, 23 Feb 2021 15:15:31 +0000 (10:15 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 23 Feb 2021 15:15:31 +0000 (10:15 -0500)
src/lib/server/virtual_servers.c

index fceecab507ee96a49e81a3787809a06e7f01e257..e46f150fe3174327db530a83c0c680a548314382 100644 (file)
@@ -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;