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

Enable more strict compiler options for clang

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.13, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None

      When upgrading the version of clang on our automated testing infrastructure to 3.4.2 we disabled a set of warnings. We should review the disabled warnings and make code changes necessary to avoid them.

      The set of warnings are:

      --- a/build_posix/aclocal/strict.m4
      +++ b/build_posix/aclocal/strict.m4
      @@ -90,6 +90,12 @@ AC_DEFUN([AM_CLANG_WARNINGS], [
              w="$w -Wno-reserved-id-macro"
              w="$w -Wno-zero-length-array"
      
      +       # Added when switching to building with clang 3.4.2
      +       w="$w -Wno-parentheses-equality"
      +       w="$w -Wno-self-assign"
      +       w="$w -Wno-unreachable-code"
      +       w="$w -Wno-unreachable-code-return"
      

      They were added as part of WT-3535

            Assignee:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: