From: Alan T. DeKok Date: Tue, 25 Jan 2022 21:22:52 +0000 (-0500) Subject: try to quiet clang scan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=605fdab46727423b70bcc6dc7cc9e5faacabb098;p=thirdparty%2Ffreeradius-server.git try to quiet clang scan we might not want to mark up each function with CC_HINT(nonnull), but it might be worth it. --- diff --git a/src/lib/server/tmpl.h b/src/lib/server/tmpl.h index 299cc09dd29..86884873471 100644 --- a/src/lib/server/tmpl.h +++ b/src/lib/server/tmpl.h @@ -903,7 +903,7 @@ size_t tmpl_request_ref_by_name(tmpl_request_ref_t *out, char const *name, tmp tmpl_t *tmpl_init_printf(tmpl_t *vpt, tmpl_type_t type, fr_token_t quote, char const *fmt, ...); tmpl_t *tmpl_init_shallow(tmpl_t *vpt, tmpl_type_t type, - fr_token_t quote, char const *name, ssize_t len); + fr_token_t quote, char const *name, ssize_t len) CC_HINT(nonnull); tmpl_t *tmpl_init(tmpl_t *vpt, tmpl_type_t type, fr_token_t quote, char const *name, ssize_t len);