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

[TRIVIAL] Remove unused variable flagged by clang 14 #4672

Merged
merged 5 commits into from
Sep 18, 2023

Conversation

ximinez
Copy link
Collaborator

@ximinez ximinez commented Aug 23, 2023

High Level Overview of Change

Removes an unused variable that is causing clang 14 builds to error out.

Context of Change

$ clang --version
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

$ cmake --build build/cmake/clang.Debug.OFF -- -j24
[...]
/home/ed/dev/rippled/upstream/src/ripple/json/impl/Writer.cpp:50:19: error: unused variable 'none' [-Werror,-Wunused-const-variable]
const std::string none;
                  ^
1 error generated.
gmake[2]: *** [CMakeFiles/xrpl_core.dir/build.make:552: CMakeFiles/xrpl_core.dir/src/ripple/json/impl/Writer.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:256: CMakeFiles/xrpl_core.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Type of Change

  • [X ] Refactor (non-breaking change that only restructures code)

Test Plan

No changes that should affect testing. As long as rippled builds, and existing tests pass, we're good.

@ckeshava
Copy link
Collaborator

ckeshava commented Sep 8, 2023

This change compiled successfully on my machine (macOS) and all the unit tests passed 👍

* upstream/develop:
  docs: update SECURITY.md (4338)
  refactor: simplify `TxFormats` common fields logic (4637)
  APIv2(ledger_entry): return invalidParams for bad parameters (4630)
  docs(rippled-example.cfg): clarify ssl_cert vs ssl_chain (4667)
  Introduce replacement for getting and setting thread name: (4312)
  Set version to 1.12.0
  Set version to 1.12.0-rc4
  amm_info: fetch by amm account id; add AMM object entry (4682)
  AMMBid: use tecINTERNAL for 'impossible' errors (4674)
@ximinez ximinez force-pushed the unused branch 2 times, most recently from 99ca52b to 25d67ff Compare September 11, 2023 23:19
@ximinez ximinez added the Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required. label Sep 11, 2023
@ximinez
Copy link
Collaborator Author

ximinez commented Sep 11, 2023

The two force pushes were me accidentally rebasing after merging, then undoing that. Should be properly merged now.

ximinez and others added 3 commits September 12, 2023 10:36
* upstream/develop:
  Several changes to improve Consensus stability: (4505)
  Apply transaction batches in periodic intervals (4504)
  Asynchronously write batches to NuDB. (4503)
  Remove CurrentThreadName.h from RippledCore.cmake (4697)
* upstream/develop:
  Fix Windows build by removing two unused declarations (4708)
  Match unit tests on start of test name (4634)
  Revert ThreadName due to problems on Windows (4702)
  `XChainBridge`: Introduce sidechain support (XLS-38): (4292)
  APIv2(account_tx, noripple_check): return error on invalid input (4620)
@intelliot intelliot merged commit 65df4bc into XRPLF:develop Sep 18, 2023
3 of 7 checks passed
ckeshava pushed a commit to ckeshava/rippled that referenced this pull request Sep 22, 2023
Removed the unused variable `none` from `Writer.cpp` which was causing
build errors on clang version 14.
ckeshava pushed a commit to ckeshava/rippled that referenced this pull request Sep 25, 2023
Removed the unused variable `none` from `Writer.cpp` which was causing
build errors on clang version 14.
sophiax851 pushed a commit to sophiax851/rippled that referenced this pull request Jun 12, 2024
Removed the unused variable `none` from `Writer.cpp` which was causing
build errors on clang version 14.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants