Bug 203154 - Fix databases/rocksdb build with clang 3.7.0
Summary: Fix databases/rocksdb build with clang 3.7.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks: 201377
  Show dependency treegraph
 
Reported: 2015-09-16 12:48 UTC by Dimitry Andric
Modified: 2015-09-28 14:27 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Fix rocksdb warnings with clang 3.7.0 (9.86 KB, patch)
2015-09-16 12:48 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2015-09-16 12:48:04 UTC
Created attachment 161118 [details]
Fix rocksdb warnings with clang 3.7.0

During the exp-run in bug 201377, it was found that databases/rocksdb gives errors with clang 3.7.0:

http://package18.nyi.freebsd.org/data/headamd64PR201377-default/2015-09-16_07h08m17s/logs/errors/rocksdb-3.13.1.log

This is because of several new warnings produced by the code, and the rocksdb Makefiles defaulting to -Werror.  Specifically:
- Pessimizing std::move() invocations in a number of places.
- A few printf() format mismatches.
- One constant integer overflow.

I have fixed all the warnings in the attached patch.
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-09-28 14:25:02 UTC
A commit references this bug:

Author: sunpoet
Date: Mon Sep 28 14:24:10 UTC 2015
New revision: 398116
URL: https://svnweb.freebsd.org/changeset/ports/398116

Log:
  - Fix warning generated by recent snapshot of Clang 3.7.0, including:
    - Pessimizing std::move() invocations in a number of places.

  PR:		203154
  Submitted by:	dim

Changes:
  head/databases/rocksdb/files/patch-db-db_bench.cc
  head/databases/rocksdb/files/patch-db-wal_manager.cc
  head/databases/rocksdb/files/patch-utilities-backupable-backupable_db.cc
  head/databases/rocksdb/files/patch-utilities-document-json_document.cc
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-09-28 14:27:26 UTC
Committed. Thanks!