[openssl/openssl] ccc7cc: use #pragma comment(lib) with _MSC_VER only
Tomas Mraz
noreply at reply.github.openssl.org
Mon Jul 11 08:37:37 UTC 2022
Branch: refs/heads/OpenSSL_1_1_1-stable
Home: https://github.openssl.org/openssl/openssl
Commit: ccc7ccb49db89865b135097237e173f82bc74751
https://github.openssl.org/openssl/openssl/commit/ccc7ccb49db89865b135097237e173f82bc74751
Author: Viktor Szakats <commit at vsz.me>
Date: 2022-07-11 (Mon, 11 Jul 2022)
Changed paths:
M crypto/rand/rand_win.c
Log Message:
-----------
use #pragma comment(lib) with _MSC_VER only
Avoid this warning when compiled with llvm/gcc + mingw-w64 and
`USE_BCRYPTGENRANDOM` enabled:
```
../providers/implementations/rands/seeding/rand_win.c:31:11: warning: unknown pragma ignored [-Wunknown-pragmas]
^
1 warning generated.
```
CLA: trivial
Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18709)
(cherry picked from commit 695cb63c744bab090144a86949b68324ee3094d6)
More information about the openssl-commits
mailing list