Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1445

BSON - Fix compile warnings

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.4.1
    • Affects Version/s: None
    • Component/s: BSON
    • None

       [2018/08/24 16:04:56.526] /usr/bin/gmake
       [2018/08/24 16:04:56.526] ../../../../ext/bson/bson_native.c: In function ‘rb_bson_byte_buffer_put_byte’:
       [2018/08/24 16:04:56.526] ../../../../ext/bson/bson_native.c:766:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       [2018/08/24 16:04:56.526]    byte_buffer_t *b;
       [2018/08/24 16:04:56.526]    ^
       [2018/08/24 16:04:56.527] ../../../../ext/bson/bson_native.c: In function ‘rb_bson_byte_buffer_put_bytes’:
       [2018/08/24 16:04:56.527] ../../../../ext/bson/bson_native.c:792:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       [2018/08/24 16:04:56.527]    byte_buffer_t *b;
       [2018/08/24 16:04:56.527]    ^
       [2018/08/24 16:04:56.529] In file included from ../../../../ext/bson/bson_native.c:21:0:
       [2018/08/24 16:04:56.529] ../../../../ext/bson/bson_native.c: At top level:
       [2018/08/24 16:04:56.529] ../../../../ext/bson/native-endian.h:124:17: warning: ‘__bson_uint16_swap_slow’ defined but not used [-Wunused-function]
       [2018/08/24 16:04:56.529]  static uint16_t __bson_uint16_swap_slow(uint16_t v)
       [2018/08/24 16:04:56.529]                  ^
       [2018/08/24 16:04:56.529] ../../../../ext/bson/native-endian.h:145:17: warning: ‘__bson_uint32_swap_slow’ defined but not used [-Wunused-function]
       [2018/08/24 16:04:56.529]  static uint32_t __bson_uint32_swap_slow(uint32_t v)
       [2018/08/24 16:04:56.529]                  ^
       [2018/08/24 16:04:56.529] ../../../../ext/bson/native-endian.h:169:17: warning: ‘__bson_uint64_swap_slow’ defined but not used [-Wunused-function]
       [2018/08/24 16:04:56.529]  static uint64_t __bson_uint64_swap_slow(uint64_t v)
       [2018/08/24 16:04:56.529]                  ^
       [2018/08/24 16:04:56.968] cc1: warning: unrecognized command line option "-Wno-self-assign" [enabled by default]
       [2018/08/24 16:04:56.968] cc1: warning: unrecognized command line option "-Wno-constant-logical-operand" [enabled by default]
       [2018/08/24 16:04:56.968] cc1: warning: unrecognized command line option "-Wno-parentheses-equality" [enabled by default]
       [2018/08/24 16:04:56.968] cc1: warning: unrecognized command line option "-Wno-tautological-compare" [enabled by default]
      

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: