Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-36588

handfull of compile warnings from forestdb

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      Building MH emtits the following warnings from forestdb

      [683/1776] Building CXX object forestdb/tests/functional/CMakeFiles/mvcc_functional_test.dir/mvcc_functional_test.cc.o
      In file included from ../forestdb/tests/functional/mvcc_functional_test.cc:29:0:
      ../forestdb/tests/functional/mvcc_functional_test.cc: In function ‘void* parallel_iterator_thread(void*)’:
      ../forestdb/tests/functional/mvcc_functional_test.cc:3672:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                   TEST_CHK(doc->seqnum == i+1);
                            ~~~~~~~~~~~~^~~~~~
      ../forestdb/tests/include/test.h:47:31: note: in definition of macro ‘TEST_CHK’
       #define TEST_CHK(cond) {if (!(cond)) {fprintf(stderr, "Test failed: %s %d\n", __FILE__, __LINE__); __test_pass=0; assert(cond);}}
                                     ^~~~
      In file included from ../forestdb/src/common.h:25:0,
                       from ../forestdb/tests/include/test.h:28,
                       from ../forestdb/tests/functional/mvcc_functional_test.cc:29:
      ../forestdb/tests/functional/mvcc_functional_test.cc:3672:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                   TEST_CHK(doc->seqnum == i+1);
                            ~~~~~~~~~~~~^~~~~~
      ../forestdb/tests/functional/mvcc_functional_test.cc:3672:13: note: in expansion of macro ‘TEST_CHK’
                   TEST_CHK(doc->seqnum == i+1);
                   ^~~~~~~~
      In file included from ../forestdb/tests/functional/mvcc_functional_test.cc:29:0:
      ../forestdb/tests/functional/mvcc_functional_test.cc:3680:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                   TEST_CHK(doc->seqnum == i+1);
                            ~~~~~~~~~~~~^~~~~~
      ../forestdb/tests/include/test.h:47:31: note: in definition of macro ‘TEST_CHK’
       #define TEST_CHK(cond) {if (!(cond)) {fprintf(stderr, "Test failed: %s %d\n", __FILE__, __LINE__); __test_pass=0; assert(cond);}}
                                     ^~~~
      In file included from ../forestdb/src/common.h:25:0,
                       from ../forestdb/tests/include/test.h:28,
                       from ../forestdb/tests/functional/mvcc_functional_test.cc:29:
      ../forestdb/tests/functional/mvcc_functional_test.cc:3680:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                   TEST_CHK(doc->seqnum == i+1);
                            ~~~~~~~~~~~~^~~~~~
      ../forestdb/tests/functional/mvcc_functional_test.cc:3680:13: note: in expansion of macro ‘TEST_CHK’
                   TEST_CHK(doc->seqnum == i+1);
                   ^~~~~~~~
      In file included from ../forestdb/tests/functional/mvcc_functional_test.cc:29:0:
      ../forestdb/tests/functional/mvcc_functional_test.cc:3687:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
               TEST_CHK(i == snap_seqnum);
                        ~~^~~~
      ../forestdb/tests/include/test.h:47:31: note: in definition of macro ‘TEST_CHK’
       #define TEST_CHK(cond) {if (!(cond)) {fprintf(stderr, "Test failed: %s %d\n", __FILE__, __LINE__); __test_pass=0; assert(cond);}}
                                     ^~~~
      In file included from ../forestdb/src/common.h:25:0,
                       from ../forestdb/tests/include/test.h:28,
                       from ../forestdb/tests/functional/mvcc_functional_test.cc:29:
      ../forestdb/tests/functional/mvcc_functional_test.cc:3687:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
               TEST_CHK(i == snap_seqnum);
                        ~~^~~~
      ../forestdb/tests/functional/mvcc_functional_test.cc:3687:9: note: in expansion of macro ‘TEST_CHK’
               TEST_CHK(i == snap_seqnum);
               ^~~~~~~~
      [699/1776] Building CXX object forestdb/tests/functional/CMakeFiles/big_compaction_test.dir/big_compaction_test.cc.o
      ../forestdb/tests/functional/big_compaction_test.cc: In function ‘void multi_writers(const char*)’:
      ../forestdb/tests/functional/big_compaction_test.cc:22:34: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
       #define BUFFERCACHE_SIZE (20*1024*1024)
                                ~~~~~~~~^~~~~~
      ../forestdb/tests/functional/big_compaction_test.cc:214:13: note: in expansion of macro ‘BUFFERCACHE_SIZE’
                   BUFFERCACHE_SIZE ? (uint64_t)BUFFERCACHE_SIZE/ (1024 * 1024) : 0,
                   ^~~~~~~~~~~~~~~~
      [746/1776] Building CXX object forestdb/tests/e2e/CMakeFiles/e2etest.dir/e2etest.cc.o
      In file included from ../forestdb/src/filemgr_ops.h:22:0,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      ../forestdb/src/arch.h:80:22: warning: redundant redeclaration of ‘void* je_malloc(size_t)’ in same scope [-Wredundant-decls]
       #define malloc(size) je_malloc(size)
                            ^
      In file included from ../forestdb/src/arch.h:65:0,
                       from ../forestdb/src/filemgr_ops.h:22,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:69:21: note: previous declaration of ‘void* je_malloc(size_t)’
       #  define je_malloc je_malloc
                           ^
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:227:28: note: in expansion of macro ‘je_malloc’
           void JEMALLOC_NOTHROW *je_malloc(size_t size)
                                  ^~~~~~~~~
      In file included from ../forestdb/src/filemgr_ops.h:22:0,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      ../forestdb/src/arch.h:81:29: warning: redundant redeclaration of ‘void* je_calloc(size_t, size_t)’ in same scope [-Wredundant-decls]
       #define calloc(nmemb, size) je_calloc(nmemb, size)
                                   ^
      In file included from ../forestdb/src/arch.h:65:0,
                       from ../forestdb/src/filemgr_ops.h:22,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:63:21: note: previous declaration of ‘void* je_calloc(size_t, size_t)’
       #  define je_calloc je_calloc
                           ^
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:230:28: note: in expansion of macro ‘je_calloc’
           void JEMALLOC_NOTHROW *je_calloc(size_t num, size_t size)
                                  ^~~~~~~~~
      In file included from ../forestdb/src/filemgr_ops.h:22:0,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      ../forestdb/src/arch.h:82:28: warning: redundant redeclaration of ‘void* je_realloc(void*, size_t)’ in same scope [-Wredundant-decls]
       #define realloc(ptr, size) je_realloc(ptr, size)
                                  ^
      In file included from ../forestdb/src/arch.h:65:0,
                       from ../forestdb/src/filemgr_ops.h:22,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:79:22: note: previous declaration of ‘void* je_realloc(void*, size_t)’
       #  define je_realloc je_realloc
                            ^
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:239:28: note: in expansion of macro ‘je_realloc’
           void JEMALLOC_NOTHROW *je_realloc(void *ptr, size_t size)
                                  ^~~~~~~~~~
      In file included from ../forestdb/src/filemgr_ops.h:22:0,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      ../forestdb/src/arch.h:83:20: warning: redundant redeclaration of ‘void je_free(void*)’ in same scope [-Wredundant-decls]
       #define free(addr) je_free(addr)
                          ^
      In file included from ../forestdb/src/arch.h:65:0,
                       from ../forestdb/src/filemgr_ops.h:22,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:65:19: note: previous declaration of ‘void je_free(void*)’
       #  define je_free je_free
                         ^
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:241:39: note: in expansion of macro ‘je_free’
       JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_free(void *ptr)
                                             ^~~~~~~
      In file included from ../forestdb/src/filemgr_ops.h:22:0,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      ../forestdb/src/arch.h:86:35: warning: redundant redeclaration of ‘void* je_memalign(size_t, size_t)’ in same scope [-Wredundant-decls]
       #define memalign(alignment, size) je_memalign(alignment, size)
                                         ^
      In file included from ../forestdb/src/arch.h:65:0,
                       from ../forestdb/src/filemgr_ops.h:22,
                       from ../forestdb/tests/e2e/e2etest.cc:28:
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:83:23: note: previous declaration of ‘void* je_memalign(size_t, size_t)’
       #  define je_memalign je_memalign
                             ^
      tlm/deps/jemalloc.exploded/include/jemalloc/jemalloc.h:274:28: note: in expansion of macro ‘je_memalign’
           void JEMALLOC_NOTHROW *je_memalign(size_t alignment, size_t size)
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            trond Trond Norbye
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty