mbedtls/programs/test
Brendan Shanks e61514d70d benchmark: Fix incompatibility with C89 compilers
Initializing arrays using non-constant expressions is not permitted in
C89, and was causing errors when compiling with Metrowerks CodeWarrior
(for classic MacOS) in C89 mode. Clang also produces a warning when
compiling with '-Wc99-extensions':

test/benchmark.c:670:42: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
        const unsigned char *dhm_P[] = { dhm_P_2048, dhm_P_3072 };
                                         ^~~~~~~~~~
test/benchmark.c:674:42: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
        const unsigned char *dhm_G[] = { dhm_G_2048, dhm_G_3072 };
                                         ^~~~~~~~~~

Declaring the arrays as 'static' makes them constant expressions.

fixes #1353
2018-03-08 17:41:40 -08:00
..
benchmark.c benchmark: Fix incompatibility with C89 compilers 2018-03-08 17:41:40 -08:00
CMakeLists.txt Fix whitespace in CMakeLists.txt 2015-06-25 10:59:57 +02:00
selftest.c selftest: allow excluding a subset of the tests 2017-12-20 21:57:48 +01:00
ssl_cert_test.c Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00
udp_proxy.c Rename net.{c,h} to net_sockets.{c,h} 2016-09-26 23:23:52 +01:00