Browse Source

Fix compiler warning

Fix a warning about unused variable on Windows when using OpenSSL.
master
Peter Eisentraut 3 months ago
parent
commit
36515e4f14
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/port/pg_strong_random.c

+ 2
- 2
src/port/pg_strong_random.c View File

@@ -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.

Loading…
Cancel
Save