diff options
author | Werner Koch <[email protected]> | 2014-08-10 07:07:03 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-08-10 07:08:03 +0000 |
commit | ab5eff46116a9a246ffb2c083bec637d0321d0cb (patch) | |
tree | 79ed54d847858d1b1f08df6b4e7b0b7794197446 | |
parent | Update ja.po (diff) | |
download | libgpg-error-ab5eff46116a9a246ffb2c083bec637d0321d0cb.tar.gz libgpg-error-ab5eff46116a9a246ffb2c083bec637d0321d0cb.zip |
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.
-rw-r--r-- | tests/t-lock.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <stdlib.h> #include <string.h> #include <assert.h> +#include <sys/types.h> +#include <unistd.h> #ifdef _WIN32 # include <windows.h> #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; |