dbcli / mssql-cli

A command-line client for SQL Server with auto-completion and syntax highlighting
BSD 3-Clause "New" or "Revised" License
1.35k stars 191 forks source link

building on arm64 Ubuntu 22.04 gives thousands of warnings #564

Open scott-doyland-burrows opened 1 year ago

scott-doyland-burrows commented 1 year ago

Building on arm64 ubuntu 22.04 gives thousands of warnings. Far too many to list here, but as an example:

/tmp/tmp.gBSBQdyNGN/Python-3.6.1/Objects/bytesobject.c:2481:5: note: in expansion of macro ‘BYTES_RSPLIT_METHODDEF’
 2481 |     BYTES_RSPLIT_METHODDEF
      |     ^~~~~~~~~~~~~~~~~~~~~~
/tmp/tmp.gBSBQdyNGN/Python-3.6.1/Objects/clinic/bytesobject.c.h:20:15: warning: cast between incompatible function types from ‘PyObject * (*)(PyBytesObject *, PyObject **, Py_ssize_t,  PyObject *)’ {aka ‘struct _object * (*)(PyBytesObject *, struct _object **, long int,  struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’} [-Wcast-function-type]
   20 |     {"split", (PyCFunction)bytes_split, METH_FASTCALL, bytes_split__doc__},
/tmp/tmp.gBSBQdyNGN/Python-3.6.1/Objects/stringlib/codecs.h:332:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
  332 |                 p += (endpos - startpos);