[openssl/openssl] 174954: use #pragma comment(lib) with _MSC_VER only

Tomas Mraz noreply at reply.github.openssl.org
Mon Jul 11 08:37:21 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 174954c9934b7031340be06b9b2c3a14edb83dd1
      https://github.openssl.org/openssl/openssl/commit/174954c9934b7031340be06b9b2c3a14edb83dd1
  Author: Viktor Szakats <commit at vsz.me>
  Date:   2022-07-11 (Mon, 11 Jul 2022)

  Changed paths:
    M providers/implementations/rands/seeding/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