diff options
author | Werner Koch <[email protected]> | 2021-05-12 06:47:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-05-12 06:50:04 +0000 |
commit | aa98081356b5f7c9ef2422021e05aed01a7e4d46 (patch) | |
tree | e0b9ed66f3791a03697b94452b9a6209cdbc113b /tests/run-threaded.c | |
parent | core: Make sure to stay ABI compatible. (diff) | |
download | gpgme-aa98081356b5f7c9ef2422021e05aed01a7e4d46.tar.gz gpgme-aa98081356b5f7c9ef2422021e05aed01a7e4d46.zip |
core: Allow for older compilers.
* tests/run-verify.c (main): Remove C99-only syntax.
* tests/run-threaded.c (start_keylistings): Ditto.
--
Older gcc's do not grok this and there is no real need for it.
run-verify.c:324: error: ‘for’ loop initial declarations are only
allowed in C99 mode
run-verify.c:324: note: use option -std=c99 or -std=gnu99 to compile
your code
Reported-by: Lars Hecking
Diffstat (limited to 'tests/run-threaded.c')
-rw-r--r-- | tests/run-threaded.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-threaded.c b/tests/run-threaded.c index 1fe4f192..c0e033bb 100644 --- a/tests/run-threaded.c +++ b/tests/run-threaded.c @@ -627,6 +627,7 @@ void start_keylistings (void) { static struct keylist_args_s args[4]; + int i; args[0].proto = GPGME_PROTOCOL_OpenPGP; args[0].secret = 0; @@ -640,7 +641,7 @@ start_keylistings (void) args[3].proto = GPGME_PROTOCOL_CMS; args[3].secret = 1; - for (int i = 0; i < 4; i++) + for (i = 0; i < 4; i++) { thread_cnt--; create_thread (do_keylist, &args[i]); |