]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
shut up scanner
authorAlan T. DeKok <aland@freeradius.org>
Thu, 16 Sep 2021 19:27:33 +0000 (15:27 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 17 Sep 2021 12:20:07 +0000 (08:20 -0400)
src/listen/cron/proto_cron_crontab.c

index 2c2d07befcc5c5db04680e00ef72d7f7fb33292b..a5ca90e333515ffa7276e39a811bd614787621fc 100644 (file)
@@ -581,8 +581,12 @@ static void do_cron(fr_event_list_t *el, fr_time_t now, void *uctx)
                        (void) mktime(&w_tm); /* normalize it */
 
                        tm_wday = w_tm.tm_wday;
+#ifndef NDEBUG
                        w_day = get_next(&w_tm, &thread->inst->tab[4]);
                        fr_assert(w_day);
+#else
+                       (void) get_next(&w_tm, &thread->inst->tab[4]);
+#endif
                }
 
                /*