Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2850

clang 4.1 attribute warnings when building

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT2.9.0, 3.2.10, 3.3.12
    • None
    • None

    Description

      When running my build script, something recently changed that is causing many (hundreds of) warnings like the one below. I have a tree from a week ago that gets no warnings at all. I see these on my Mac only. AWS builds cleanly.

      ../../../src/include/gcc.h:26:53: note: expanded from macro
            'WT_GCC_FUNC_DECL_ATTRIBUTE'
      #define WT_GCC_FUNC_DECL_ATTRIBUTE(x) __attribute__(x)
                                                          ^
      In file included from ../../../bench/wtperf/wtperf_truncate.c:29:
      In file included from ../../../bench/wtperf/wtperf.h:32:
      In file included from ../../../test/utility/test_util.h:28:
      In file included from ../../../src/include/wt_internal.h:356:
      ../../../src/include/extern.h:635:107: warning: unknown attribute 'cold' ignored
            [-Wattributes]
        ...*session, const char *uri) WT_GCC_FUNC_DECL_ATTRIBUTE((cold)) ...
      

      And my compiler:

      % cc --version
      Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
      Target: x86_64-apple-darwin12.4.0
      Thread model: posix
      

      Attachments

        Activity

          People

            keith.bostic@mongodb.com Keith Bostic (Inactive)
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: