]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More compiler quietening
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 14 Jul 2020 02:22:27 +0000 (19:22 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 14 Jul 2020 02:22:27 +0000 (19:22 -0700)
src/lib/util/time.c

index 7bc6e594991959d494e87cd3a6419d4e77f94231..700c6b7237fa5d2dbedccb768c3ea530a1f64e2b 100644 (file)
@@ -500,6 +500,7 @@ done:
        return 0;
 }
 
+DIAG_OFF(format-nonliteral)
 /** Copy a time string (local timezone) to an sbuff
  *
  * @param[in] out      Where to write the formatted time string.
@@ -547,6 +548,7 @@ size_t fr_time_strftime_utc(fr_sbuff_t *out, fr_time_t time, char const *fmt)
 
        return fr_sbuff_advance(out, len);
 }
+DIAG_ON(format-nonliteral)
 
 void fr_time_elapsed_update(fr_time_elapsed_t *elapsed, fr_time_t start, fr_time_t end)
 {