]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add CC_HINT
authorAlan T. DeKok <aland@freeradius.org>
Sun, 1 Oct 2023 14:24:49 +0000 (10:24 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 1 Oct 2023 14:25:02 +0000 (10:25 -0400)
src/lib/unlang/xlat_alloc.c
src/tests/xlat/rlm_expr.txt [deleted file]

index 0428d1f745364a5fc773b17b04028d716f44dd8e..86da776a9a3f54e5d2d1d042f2ccd504e1d924b4 100644 (file)
@@ -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 (file)
index 8e4998e..0000000
+++ /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