Sitelet https://web.archive.org/web/20220423203716/https://github.com/nodejs/node/pull/36060
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto: fix format warning in AdditionalConfig #36060

Merged
merged 0 commits into from Nov 16, 2020

Conversation

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
Contributor

@nodejs-github-bot nodejs-github-bot commented Nov 10, 2020

Review requested:

@nodejs-github-bot nodejs-github-bot added the 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 Nov 10, 2020
src/crypto/crypto_keygen.cc Outdated Show resolved Hide resolved
@RaisinTen RaisinTen force-pushed the fix-format-string-warning-crypto branch from 20e30c1 to fedce01 Compare Nov 10, 2020
src/crypto/crypto_keygen.cc Outdated Show resolved Hide resolved
src/crypto/crypto_keygen.cc Outdated Show resolved Hide resolved
@RaisinTen RaisinTen force-pushed the fix-format-string-warning-crypto branch from e44d72f to 9d4acd9 Compare Nov 10, 2020
@Trott Trott added the request-ci label Nov 12, 2020
@github-actions github-actions bot removed the request-ci label Nov 12, 2020
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Nov 12, 2020

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Nov 14, 2020

@Trott
Copy link
Member

@Trott 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 Nov 16, 2020
@Trott Trott merged commit db8af5d into nodejs:master Nov 16, 2020
12 checks passed
@RaisinTen RaisinTen deleted the fix-format-string-warning-crypto branch Nov 16, 2020
codebytere pushed a commit that referenced this issue 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 <github@addaleax.net>

PR-URL: #36060
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@codebytere codebytere mentioned this pull request Nov 22, 2020
@targos targos added the dont-land-on-v14.x label May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ dont-land-on-v14.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants