From: Alan T. DeKok Date: Sun, 1 Oct 2023 14:24:49 +0000 (-0400) Subject: add CC_HINT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db822980ef5b40b8b1535f941a023e50277457b0;p=thirdparty%2Ffreeradius-server.git add CC_HINT --- diff --git a/src/lib/unlang/xlat_alloc.c b/src/lib/unlang/xlat_alloc.c index 0428d1f7453..86da776a9a3 100644 --- a/src/lib/unlang/xlat_alloc.c +++ b/src/lib/unlang/xlat_alloc.c @@ -240,7 +240,7 @@ void xlat_exp_set_name_buffer_shallow(xlat_exp_t *node, char const *fmt) * - 0 on success. * - -1 on failure. */ -static int _xlat_copy_internal(NDEBUG_LOCATION_ARGS TALLOC_CTX *ctx, xlat_exp_head_t *out, xlat_exp_head_t const *in) +static int CC_HINT(nonnull) _xlat_copy_internal(NDEBUG_LOCATION_ARGS TALLOC_CTX *ctx, xlat_exp_head_t *out, xlat_exp_head_t const *in) { xlat_exp_head_t *head = NULL; diff --git a/src/tests/xlat/rlm_expr.txt b/src/tests/xlat/rlm_expr.txt deleted file mode 100644 index 8e4998e5499..00000000000 --- a/src/tests/xlat/rlm_expr.txt +++ /dev/null @@ -1,23 +0,0 @@ -xlat %{expr: 1 + 2 + 3 + 4} -match 10 - -xlat %{expr: 1 & ~1} -match 0 - -xlat %{expr: 2 - -1} -match 3 - -xlat %{expr: -1 * 2} -match -2 - -xlat %{expr: 1 << 2 | 1} -match 5 - -xlat %{expr: 6 + -(1 + 3)} -match 2 - -xlat %{tolower:\%{ FOO} -match %{ foo - -xlat \%D -match %D