Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-46860

suppress mozjs -Wsign-compare build warnings

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Dev Tools 2020-03-23

      Need to build mozjs with –

      -Wno-sign-compare

      src/third_party/mozjs-60/extract/modules/fdlibm/s_floor.cpp:64:8: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int32_t' {aka 'int'} [-Wsign-compare]
      src/third_party/mozjs-60/extract/modules/fdlibm/s_ceil.cpp:63:8: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int32_t' {aka 'int'} [-Wsign-compare]
      src/third_party/mozjs-60/extract/modules/fdlibm/e_pow.cpp:131:21: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare]
      src/third_party/mozjs-60/extract/modules/fdlibm/e_sqrt.cpp:158:16: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int32_t' {aka 'int'} [-Wsign-compare]

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: