mongodb-labs / python-bsonjs

A fast BSON to MongoDB Extended JSON converter for Python - This Repository is NOT a supported MongoDB product
Apache License 2.0
40 stars 10 forks source link

Fix initialization from incompatible pointer type compile warnings #42

Closed ShaneHarvey closed 1 year ago

ShaneHarvey commented 2 years ago

We should fix these compile warnings:

/bsonjs.c -o build/temp.linux-x86_64-3.10/src/bsonjs.o
src/bsonjs.c:234:14: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     {"dump", dump, METH_VARARGS | METH_KEYWORDS, dump__doc__},
              ^~~~
src/bsonjs.c:234:14: note: (near initialization for ‘BsonjsClientMethods[0].ml_meth’)
src/bsonjs.c:235:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     {"dumps", dumps, METH_VARARGS | METH_KEYWORDS, dumps__doc__},
               ^~~~~