fix more compile warnings

N/A

Change-Id: I5b6f9c70aea7d3f3489328834fed323d41106d9f
Signed-off-by: liuhuahang <liuhuahang@zerus.co>
main
liuhuahang 10 years ago
parent 6d31441181
commit bb6ae0f80c
  1. 3
      db/compaction.cc
  2. 3
      db/compaction_picker.cc
  3. 2
      db/db_bench.cc
  4. 3
      db/db_filesnapshot.cc
  5. 3
      db/db_impl.cc
  6. 3
      db/filename.cc
  7. 4
      db/internal_stats.cc
  8. 3
      db/repair.cc
  9. 3
      db/version_set.cc
  10. 3
      include/rocksdb/utilities/backupable_db.h
  11. 3
      table/cuckoo_table_reader_test.cc
  12. 3
      util/db_info_dummper.cc
  13. 3
      util/dynamic_bloom_test.cc
  14. 3
      util/logging.cc
  15. 3
      util/options.cc
  16. 3
      util/options_test.cc
  17. 3
      util/rate_limiter_test.cc
  18. 3
      util/statistics.cc
  19. 2
      utilities/backupable/backupable_db.cc
  20. 3
      utilities/document/json_document.cc
  21. 2
      utilities/geodb/geodb_impl.cc

@ -9,7 +9,10 @@
#include "db/compaction.h" #include "db/compaction.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <vector> #include <vector>

@ -9,7 +9,10 @@
#include "db/compaction_picker.h" #include "db/compaction_picker.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <limits> #include <limits>
#include "db/filename.h" #include "db/filename.h"

@ -7,7 +7,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors. // found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#ifndef GFLAGS #ifndef GFLAGS
#include <cstdio> #include <cstdio>

@ -9,7 +9,10 @@
#ifndef ROCKSDB_LITE #ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <algorithm> #include <algorithm>
#include <string> #include <string>

@ -9,7 +9,10 @@
#include "db/db_impl.h" #include "db/db_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <algorithm> #include <algorithm>
#include <climits> #include <climits>

@ -6,7 +6,10 @@
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors. // found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include "db/filename.h" #include "db/filename.h"
#include <inttypes.h> #include <inttypes.h>

@ -7,7 +7,11 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors. // found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/internal_stats.h" #include "db/internal_stats.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <vector> #include <vector>
#include "db/column_family.h" #include "db/column_family.h"

@ -31,7 +31,10 @@
#ifndef ROCKSDB_LITE #ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include "db/builder.h" #include "db/builder.h"
#include "db/db_impl.h" #include "db/db_impl.h"

@ -9,7 +9,10 @@
#include "db/version_set.h" #include "db/version_set.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <algorithm> #include <algorithm>
#include <map> #include <map>

@ -10,7 +10,10 @@
#pragma once #pragma once
#ifndef ROCKSDB_LITE #ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <string> #include <string>
#include <map> #include <map>

@ -11,7 +11,10 @@ int main() {
} }
#else #else
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <gflags/gflags.h> #include <gflags/gflags.h>
#include <vector> #include <vector>

@ -6,7 +6,10 @@
// Must not be included from any .h files to avoid polluting the namespace // Must not be included from any .h files to avoid polluting the namespace
// with macros. // with macros.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <stdio.h> #include <stdio.h>
#include <string> #include <string>

@ -11,7 +11,10 @@ int main() {
} }
#else #else
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <algorithm> #include <algorithm>
#include <gflags/gflags.h> #include <gflags/gflags.h>

@ -9,7 +9,10 @@
#include "util/logging.h" #include "util/logging.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <errno.h> #include <errno.h>
#include <stdarg.h> #include <stdarg.h>

@ -10,7 +10,10 @@
#include "rocksdb/options.h" #include "rocksdb/options.h"
#include "rocksdb/immutable_options.h" #include "rocksdb/immutable_options.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <limits> #include <limits>

@ -7,7 +7,10 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors. // found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <gflags/gflags.h> #include <gflags/gflags.h>

@ -7,7 +7,10 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors. // found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <limits> #include <limits>
#include "util/testharness.h" #include "util/testharness.h"

@ -5,7 +5,10 @@
// //
#include "util/statistics.h" #include "util/statistics.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include "rocksdb/statistics.h" #include "rocksdb/statistics.h"
#include "port/likely.h" #include "port/likely.h"

@ -15,7 +15,9 @@
#include "util/crc32c.h" #include "util/crc32c.h"
#include "rocksdb/transaction_log.h" #include "rocksdb/transaction_log.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <algorithm> #include <algorithm>

@ -6,7 +6,10 @@
#include "rocksdb/utilities/json_document.h" #include "rocksdb/utilities/json_document.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h> #include <inttypes.h>
#include <cassert> #include <cassert>
#include <string> #include <string>

@ -7,7 +7,9 @@
#include "utilities/geodb/geodb_impl.h" #include "utilities/geodb/geodb_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif
#include <vector> #include <vector>
#include <map> #include <map>

Loading…
Cancel
Save