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

Fix -Wunused-function warning in db_bench.cc #310

Closed
wants to merge 1 commit into from

Conversation

zmodem
Copy link
Contributor

@zmodem zmodem commented Oct 8, 2015

This warning was recently enabled more widely in Chromium, and it fired on this
file:

../../third_party/leveldatabase/src/db/db_bench.cc(145,14):
error: unused function 'TrimSpace' [-Werror,-Wunused-function]
static Slice TrimSpace(Slice s) {
^

This warning was recently enabled more widely in Chromium, and it fired on this
file:

../../third_party/leveldatabase/src/db/db_bench.cc(145,14):
error: unused function 'TrimSpace' [-Werror,-Wunused-function]
static Slice TrimSpace(Slice s) {
             ^
cmumford added a commit that referenced this pull request Oct 13, 2015
Incorporated change by zmodem at #310
to fix issue #310.

This change will only build TrimSace on linux to avoid unused function
warning/error.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=105323419
cmumford added a commit that referenced this pull request Dec 9, 2015
Incorporated change by zmodem at #310
to fix issue #310.

This change will only build TrimSace on linux to avoid unused function
warning/error.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=105323419
@cmumford
Copy link
Contributor

cmumford commented Jan 6, 2016

Incorporated manually in 3c9ff3c before we were setup to accept pull requests.

@cmumford cmumford closed this Jan 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants