Skip to content

Conversation

RaisinTen
Copy link
Member

@RaisinTen RaisinTen commented Nov 10, 2020

Fixes:

../src/crypto/crypto_keygen.cc: In static member function ‘static v8::Maybe<bool> node::crypto::SecretKeyGenTraits::AdditionalConfig(node::crypto::CryptoJobMode, const v8::FunctionCallbackInfo<v8::Value>&, unsigned int*, node::crypto::SecretKeyGenConfig*)’:
../src/crypto/crypto_keygen.cc:73:53: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat=]
              static_cast<size_t>(INT_MAX) * CHAR_BIT);
                                                     ^
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/crypto
  • @nodejs/quic

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Nov 10, 2020
@RaisinTen RaisinTen force-pushed the fix-format-string-warning-crypto branch 3 times, most recently from 967eee2 to 20e30c1 Compare November 10, 2020 08:57
@RaisinTen RaisinTen force-pushed the fix-format-string-warning-crypto branch from 20e30c1 to fedce01 Compare November 10, 2020 15:16
@RaisinTen RaisinTen force-pushed the fix-format-string-warning-crypto branch from e44d72f to 9d4acd9 Compare November 10, 2020 15:28
@Trott Trott added the request-ci Add this label to start a Jenkins CI on a PR. label Nov 12, 2020
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 12, 2020
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
Member

Trott commented Nov 16, 2020

Landed in db8af5d

@Trott Trott closed this Nov 16, 2020
@Trott Trott force-pushed the fix-format-string-warning-crypto branch from 9d4acd9 to db8af5d Compare November 16, 2020 14:46
@Trott Trott merged commit db8af5d into nodejs:master Nov 16, 2020
@RaisinTen RaisinTen deleted the fix-format-string-warning-crypto branch November 16, 2020 15:20
codebytere pushed a commit that referenced this pull request Nov 22, 2020
Fixes warning: format ‘%lu’ expects argument of type ‘long unsigned
int’, but argument 4 has type ‘size_t {aka unsigned int}`

Co-authored-by: Anna Henningsen <[email protected]>

PR-URL: #36060
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@codebytere codebytere mentioned this pull request Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants