]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
try to quiet clang scan
authorAlan T. DeKok <aland@freeradius.org>
Tue, 25 Jan 2022 21:22:52 +0000 (16:22 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 25 Jan 2022 21:22:52 +0000 (16:22 -0500)
we might not want to mark up each function with CC_HINT(nonnull),
but it might be worth it.

src/lib/server/tmpl.h

index 299cc09dd2901b2e3a612a9a70f037b4a18af84b..8688487347196a008c21c83d54af96cc5a6d55cb 100644 (file)
@@ -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);