projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
756349c
)
Fix compiler warning
author
Peter Eisentraut
<peter@eisentraut.org>
Sun, 1 Sep 2019 21:19:51 +0000
(23:19 +0200)
committer
Peter Eisentraut
<peter@eisentraut.org>
Sun, 1 Sep 2019 21:19:51 +0000
(23:19 +0200)
Fix a warning about unused variable on Windows when using OpenSSL.
src/port/pg_strong_random.c
patch
|
blob
|
blame
|
history
diff --git
a/src/port/pg_strong_random.c
b/src/port/pg_strong_random.c
index 0fad6f4bcb0864bee659c473c2f7d7ba79e97b09..6be5874cbfb118203aefb7beb336de10058699fe 100644
(file)
--- a/
src/port/pg_strong_random.c
+++ b/
src/port/pg_strong_random.c
@@
-27,11
+27,11
@@
#ifdef USE_OPENSSL
#include <openssl/rand.h>
#endif
-#ifdef
WIN32
+#ifdef
USE_WIN32_RANDOM
#include <wincrypt.h>
#endif
-#ifdef
WIN32
+#ifdef
USE_WIN32_RANDOM
/*
* Cache a global crypto provider that only gets freed when the process
* exits, in case we need random numbers more than once.