mbedtls/programs
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
..
aes Correct comment 2017-07-28 22:28:08 +01:00
hash New MD API: rename functions from _ext to _ret 2018-01-22 11:54:42 +01:00
pkey Merge remote-tracking branch 'upstream-public/pr/1294' into development 2018-01-25 14:47:39 +00:00
random Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00
ssl Fix race condition in error printing in ssl_server2.c 2018-01-25 11:27:24 +01:00
test benchmark: Fix incompatibility with C89 compilers 2018-03-08 17:41:40 -08:00
util Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00
x509 Improve output on bad cmd line args in programs/x509/cert_write 2017-10-03 14:56:04 +01:00
.gitignore Add new program to gitignore 2015-11-02 06:34:29 +09:00
CMakeLists.txt - Added missing subdirectory line for util 2012-09-25 08:19:18 +00:00
Makefile Add example program for Curve25519 2015-10-09 12:13:29 +01:00
wince_main.c Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00