diff options
author | Werner Koch <[email protected]> | 2017-11-17 16:34:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-11-17 16:34:04 +0000 |
commit | a950326d20990fa33cee637d5b54d708fff585b2 (patch) | |
tree | 39080b5c71614db1a154d4043abcc6d4636eefb0 | |
parent | w32: Add new API fucntion gpgrt_w32_reg_query_string. (diff) | |
download | libgpg-error-a950326d20990fa33cee637d5b54d708fff585b2.tar.gz libgpg-error-a950326d20990fa33cee637d5b54d708fff585b2.zip |
w32: Avoid unused code warning.
* src/w32-estream.c (_gpgrt_w32_poll) [!ENABLE_TRACING]: Do not use
waitinfo.
--
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | src/w32-estream.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/w32-estream.c b/src/w32-estream.c index d9a4d36..2122c59 100644 --- a/src/w32-estream.c +++ b/src/w32-estream.c @@ -776,7 +776,9 @@ _gpgrt_w32_poll (gpgrt_poll_t *fds, size_t nfds, int timeout) { HANDLE waitbuf[MAXIMUM_WAIT_OBJECTS]; int waitidx[MAXIMUM_WAIT_OBJECTS]; +#ifdef ENABLE_TRACING char waitinfo[MAXIMUM_WAIT_OBJECTS]; +#endif unsigned int code; int nwait; int i; @@ -833,7 +835,9 @@ _gpgrt_w32_poll (gpgrt_poll_t *fds, size_t nfds, int timeout) return -1; } waitidx[nwait] = i; +#ifdef ENABLE_TRACING waitinfo[nwait] = 'r'; +#endif /*ENABLE_TRACING*/ waitbuf[nwait++] = ctx->have_data_ev; any = 1; } @@ -862,16 +866,20 @@ _gpgrt_w32_poll (gpgrt_poll_t *fds, size_t nfds, int timeout) return -1; } waitidx[nwait] = i; +#ifdef ENABLE_TRACING waitinfo[nwait] = 'w'; +#endif /*ENABLE_TRACING*/ waitbuf[nwait++] = ctx->is_empty; any = 1; } } } +#ifdef ENABLE_TRACING trace_start (("poll on [ ")); for (i = 0; i < nwait; i++) trace_append (("%d/%c ", waitidx[i], waitinfo[i])); trace_finish (("]")); +#endif /*ENABLE_TRACING*/ if (!any) return 0; |