From ab5eff46116a9a246ffb2c083bec637d0321d0cb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sun, 10 Aug 2014 09:07:03 +0200 Subject: tests: Fix compiler warning. * tests/t-lock.c: Include header vor getpid. (revision_thread): Init "i" to avoid compiler warning. -- GnuPG-bug-id: 1681 Note that the non-initialization of I did not harm. --- tests/t-lock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/t-lock.c b/tests/t-lock.c index 190d63e..5a21666 100644 --- a/tests/t-lock.c +++ b/tests/t-lock.c @@ -25,6 +25,8 @@ #include #include #include +#include +#include #ifdef _WIN32 # include #else @@ -132,7 +134,7 @@ static THREAD_RET_TYPE revision_thread (void *arg) { gpg_err_code_t rc; - int i; + int i = 0; (void)arg; -- cgit v1.2.3