mbedtls/tests/include
Sergei Trofimovich da2a33de0f tests: fix calloc() argument list (gcc-14 fix)
`gcc-14` added a new `-Wcalloc-transposed-args` warning recently. It
detected minor infelicity in `calloc()` API usage in `mbedtls`:

    In file included from /build/mbedtls/tests/include/test/ssl_helpers.h:19,
                     from /build/mbedtls/tests/src/test_helpers/ssl_helpers.c:11:
    /build/mbedtls/tests/src/test_helpers/ssl_helpers.c: In function 'mbedtls_test_init_handshake_options':
    /build/mbedtls/tests/include/test/macros.h:128:46:
      error: 'calloc' sizes specified with 'sizeof' in the earlier argument
        and not in the later argument [-Werror=calloc-transposed-args]
      128 |             (pointer) = mbedtls_calloc(sizeof(*(pointer)),  \
          |                                              ^

Signed-off-by: Sergei Trofimovich <slyich@gmail.com>
2024-01-25 21:29:56 +00:00
..
alt-dummy update headers 2023-11-02 19:47:20 +00:00
alt-extra/psa Test the PSA alternative header configuration macros 2023-02-23 17:18:33 +01:00
baremetal-override update headers 2023-11-02 19:47:20 +00:00
spe update headers 2023-11-02 19:47:20 +00:00
test tests: fix calloc() argument list (gcc-14 fix) 2024-01-25 21:29:56 +00:00