[CDRIVER-3777] clang 11.0.3 compile warnings in libbson Created: 12/Aug/20  Updated: 24/Mar/23

Status: Backlog
Project: C Driver
Component/s: libbson
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Shane Harvey Assignee: Ezra Chung
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-72015 Fix and/or suppress compiler warnings... Needs Scheduling
Related
related to CDRIVER-4596 Reducing Warnings - MSVC and MinGW Wa... Closed
is related to CDRIVER-3776 Windows VS2019 compile warnings in li... Closed

 Description   

Related to CDRIVER-3776. I see these compile warnings in libbson 1.17.0 with clang 11.0.3:

python3.8 setup.py build_ext -i
running build_ext
building 'bsonjs' extension
creating build
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src
creating build/temp.macosx-10.9-x86_64-3.8/src/bson
creating build/temp.macosx-10.9-x86_64-3.8/src/common
creating build/temp.macosx-10.9-x86_64-3.8/src/jsonsl
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bsonjs.c -o build/temp.macosx-10.9-x86_64-3.8/src/bsonjs.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-context.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-context.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-oid.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-oid.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-error.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-error.o
src/bson/bson-error.c:113:8: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
   ret = strerror_r (err_code, buf, buflen);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-atomic.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-atomic.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-string.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-string.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-keys.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-keys.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-iter.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-iter.o
src/bson/bson-iter.c:639:29: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
         if (binary_len + 4 != l) {
             ~~~~~~~~~~~~~~ ^  ~
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-iso8601.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-iso8601.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-md5.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-md5.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-memory.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-memory.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-writer.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-writer.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-value.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-value.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-json.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-json.o
src/bson/bson-json.c:2090:39: warning: comparison of integers of different signs: 'ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
            if (reader->json_text_pos < reader->json->pos) {
                ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
src/bson/bson-json.c:2091:24: warning: comparison of integers of different signs: 'unsigned long' and 'ssize_t' (aka 'long') [-Wsign-compare]
               accum = BSON_MIN (reader->json->pos - reader->json_text_pos, r);
                       ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~
src/bson/bson-macros.h:123:30: note: expanded from macro 'BSON_MIN'
#define BSON_MIN(a, b) (((a) < (b)) ? (a) : (b))
                          ~  ^  ~
2 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bcon.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bcon.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-version-functions.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-version-functions.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DBSON_COMPILATION=1 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src/bson/bson-decimal128.c -o build/temp.macosx-10.9-x86_64-3.8/src/bson/bson-decimal128.o
src/bson/bson-decimal128.c:285:20: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int32_t' (aka 'int') [-Wsign-compare]
                 i < radix_position && (str_out - str) < BSON_DECIMAL128_STRING;
                 ~ ^ ~~~~~~~~~~~~~~
src/bson/bson-decimal128.c:626:17: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
   if (exponent <= radix_position && radix_position - exponent > (1 << 14)) {
       ~~~~~~~~ ^  ~~~~~~~~~~~~~~
2 warnings generated.

Exact clang version:

gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin



 Comments   
Comment by Shane Harvey [ 03/Feb/22 ]

Here are the current warnings with libbson 1.20.0 on macos https://github.com/mongodb-labs/python-bsonjs/runs/4733812834?check_suite_focus=true#step:5:53:

gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Users/runner/hostedtoolcache/Python/3.10.0/x64/include/python3.10 -c src/bson/bson-decimal128.c -o build/temp.macosx-10.14-x86_64-3.10/src/bson/bson-decimal128.o
src/bson/bson-decimal128.c:285:20: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int32_t' (aka 'int') [-Wsign-compare]
                 i < radix_position && (str_out - str) < BSON_DECIMAL128_STRING;
                 ~ ^ ~~~~~~~~~~~~~~
src/bson/bson-decimal128.c:626:17: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
   if (exponent <= radix_position && radix_position - exponent > (1 << 14)) {
       ~~~~~~~~ ^  ~~~~~~~~~~~~~~
2 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Users/runner/hostedtoolcache/Python/3.10.0/x64/include/python3.10 -c src/bson/bson-error.c -o build/temp.macosx-10.14-x86_64-3.10/src/bson/bson-error.o
src/bson/bson-error.c:113:8: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
   ret = strerror_r (err_code, buf, buflen);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Users/runner/hostedtoolcache/Python/3.10.0/x64/include/python3.10 -c src/bson/bson-iter.c -o build/temp.macosx-10.14-x86_64-3.10/src/bson/bson-iter.o
src/bson/bson-iter.c:639:29: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
         if (binary_len + 4 != l) {
             ~~~~~~~~~~~~~~ ^  ~
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Users/runner/hostedtoolcache/Python/3.10.0/x64/include/python3.10 -c src/bson/bson-json.c -o build/temp.macosx-10.14-x86_64-3.10/src/bson/bson-json.o
src/bson/bson-json.c:840:13: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
      if (x >= max) {
          ~ ^  ~~~
src/bson/bson-json.c:2186:39: warning: comparison of integers of different signs: 'ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
            if (reader->json_text_pos < reader->json->pos) {
                ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
src/bson/bson-json.c:2187:24: warning: comparison of integers of different signs: 'unsigned long' and 'ssize_t' (aka 'long') [-Wsign-compare]
               accum = BSON_MIN (reader->json->pos - reader->json_text_pos, r);
                       ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~
src/bson/bson-macros.h:123:30: note: expanded from macro 'BSON_MIN'
#define BSON_MIN(a, b) (((a) < (b)) ? (a) : (b))
                          ~  ^  ~
3 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/Users/runner/hostedtoolcache/Python/3.10.0/x64/include/python3.10 -c src/bson/bson.c -o build/temp.macosx-10.14-x86_64-3.10/src/bson/bson.o
src/bson/bson.c:2940:24: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int32_t' (aka 'int') [-Wsign-compare]
   if (state->str->len >= state->max_len) {
       ~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~
src/bson/bson.c:2943:27: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int32_t' (aka 'int') [-Wsign-compare]
      if (state->str->len > state->max_len) {
          ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
2 warnings generated.

Note we're vendoring and building libbson in a hacky way (hard coding some of bson-config.h) without using cmake or ./configure so some of these errors might not be reproducible for you.

And here are the warning on Ubuntu 18 https://github.com/mongodb-labs/python-bsonjs/runs/4733813031?check_suite_focus=true#step:5:56:

gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/opt/hostedtoolcache/Python/3.10.1/x64/include/python3.10 -c src/bson/bson-decimal128.c -o build/temp.linux-x86_64-3.10/src/bson/bson-decimal128.o
src/bson/bson-decimal128.c: In function ‘bson_decimal128_to_string’:
src/bson/bson-decimal128.c:285:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                  i < radix_position && (str_out - str) < BSON_DECIMAL128_STRING;
                    ^
src/bson/bson-decimal128.c: In function ‘bson_decimal128_from_string_w_len’:
src/bson/bson-decimal128.c:626:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (exponent <= radix_position && radix_position - exponent > (1 << 14)) {
                 ^~
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/opt/hostedtoolcache/Python/3.10.1/x64/include/python3.10 -c src/bson/bson-error.c -o build/temp.linux-x86_64-3.10/src/bson/bson-error.o
src/bson/bson-error.c: In function ‘bson_strerror_r’:
src/bson/bson-error.c:113:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
    ret = strerror_r (err_code, buf, buflen);
        ^
...
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/opt/hostedtoolcache/Python/3.10.1/x64/include/python3.10 -c src/bson/bson-iter.c -o build/temp.linux-x86_64-3.10/src/bson/bson-iter.o
src/bson/bson-iter.c: In function ‘_bson_iter_next_internal’:
src/bson/bson-iter.c:639:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          if (binary_len + 4 != l) {
                             ^~
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/opt/hostedtoolcache/Python/3.10.1/x64/include/python3.10 -c src/bson/bson-json.c -o build/temp.linux-x86_64-3.10/src/bson/bson-json.o
src/bson/bson-json.c: In function ‘_unhexlify_uuid’:
src/bson/bson-json.c:840:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if (x >= max) {
             ^~
src/bson/bson-json.c: In function ‘bson_json_reader_read’:
src/bson/bson-json.c:2186:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (reader->json_text_pos < reader->json->pos) {
                                       ^
In file included from src/bson/bson-compat.h:35:0,
                 from src/bson/bson.h:23,
                 from src/bson/bson-json.c:23:
src/bson/bson-macros.h:123:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define BSON_MIN(a, b) (((a) < (b)) ? (a) : (b))
                              ^
src/bson/bson-json.c:2187:24: note: in expansion of macro ‘BSON_MIN’
                accum = BSON_MIN (reader->json->pos - reader->json_text_pos, r);
                        ^~~~~~~~
src/bson/bson-macros.h:123:43: warning: signed and unsigned type in conditional expression [-Wsign-compare]
 #define BSON_MIN(a, b) (((a) < (b)) ? (a) : (b))
                                           ^
src/bson/bson-json.c:2187:24: note: in expansion of macro ‘BSON_MIN’
                accum = BSON_MIN (reader->json->pos - reader->json_text_pos, r);
                        ^~~~~~~~
...
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/opt/hostedtoolcache/Python/3.10.1/x64/include/python3.10 -c src/bson/bson.c -o build/temp.linux-x86_64-3.10/src/bson/bson.o
src/bson/bson.c: In function ‘_bson_as_json_visit_after’:
src/bson/bson.c:2940:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (state->str->len >= state->max_len) {
                        ^~
src/bson/bson.c:2943:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if (state->str->len > state->max_len) {
                           ^
...
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DBSON_COMPILATION=1 -DPy_LIMITED_API=0x03060000 -Isrc -Isrc/bson -Isrc/jsonsl -Isrc/common -I/opt/hostedtoolcache/Python/3.10.1/x64/include/python3.10 -c src/common/common-md5.c -o build/temp.linux-x86_64-3.10/src/common/common-md5.o
src/common/common-md5.c: In function ‘__bson_md5_append’:
src/common/common-md5.c:356:54: warning: signed and unsigned type in conditional expression [-Wsign-compare]
       int copy = (offset + nbytes > 64 ? 64 - offset : nbytes);
                                                      ^

Generated at Wed Feb 07 21:19:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.