5353 */
5454static PyObject * py_zstd_compress_mt (PyObject * self , PyObject * args )
5555{
56-
56+ UNUSED (self );
57+
5758 PyObject * result ;
5859 const char * source ;
5960 Py_ssize_t source_size ;
@@ -147,6 +148,7 @@ static PyObject *py_zstd_compress_mt(PyObject* self, PyObject *args)
147148 */
148149static PyObject * py_zstd_uncompress (PyObject * self , PyObject * args )
149150{
151+ UNUSED (self );
150152
151153 PyObject * result ;
152154 const char * source , * src ;
@@ -204,7 +206,7 @@ static PyObject *py_zstd_uncompress(PyObject* self, PyObject *args)
204206 error = 1 ;
205207// }
206208 } else if (cSize != dest_size ) {
207- PyErr_Format (ZstdError , "Decompression error: length mismatch -> decomp %lu != %lu [header]" , (uint64_t )cSize , dest_size );
209+ PyErr_Format (ZstdError , "Decompression error: length mismatch -> decomp %llu != %llu [header]" , (uint64_t )cSize , dest_size );
208210 error = 1 ;
209211 }
210212 } else {
@@ -230,10 +232,11 @@ static PyObject *py_zstd_uncompress(PyObject* self, PyObject *args)
230232 */
231233static PyObject * py_zstd_check (PyObject * self , PyObject * args )
232234{
235+ UNUSED (self );
233236 //PyObject *result;
234237 const char * source , * src ;
235238 Py_ssize_t source_size , ss , seek_frame ;
236- int64_t dest_size , frame_size , error = 0 ;
239+ uint64_t dest_size , frame_size , error = 0 ;
237240 //char error = 0;
238241 //size_t cSize;
239242
@@ -277,6 +280,9 @@ static PyObject *py_zstd_check(PyObject* self, PyObject *args)
277280 */
278281static PyObject * py_zstd_module_version (PyObject * self , PyObject * args )
279282{
283+ UNUSED (self );
284+ UNUSED (args );
285+
280286#if PY_MAJOR_VERSION >= 3
281287 return PyUnicode_FromFormat ("%s" , xstr (VERSION ));
282288#else
@@ -289,6 +295,9 @@ static PyObject *py_zstd_module_version(PyObject* self, PyObject *args)
289295 */
290296static PyObject * py_zstd_library_version (PyObject * self , PyObject * args )
291297{
298+ UNUSED (self );
299+ UNUSED (args );
300+
292301#if PY_MAJOR_VERSION >= 3
293302 return PyUnicode_FromFormat ("%s" , ZSTD_versionString ());
294303#else
@@ -301,6 +310,9 @@ static PyObject *py_zstd_library_version(PyObject* self, PyObject *args)
301310 */
302311static PyObject * py_zstd_library_version_int (PyObject * self , PyObject * args )
303312{
313+ UNUSED (self );
314+ UNUSED (args );
315+
304316 return Py_BuildValue ("i" , ZSTD_VERSION_NUMBER );
305317}
306318
@@ -309,6 +321,9 @@ static PyObject *py_zstd_library_version_int(PyObject* self, PyObject *args)
309321 */
310322static PyObject * py_zstd_library_legacy_format_support (PyObject * self , PyObject * args )
311323{
324+ UNUSED (self );
325+ UNUSED (args );
326+
312327 return Py_BuildValue ("i" , ZSTD_LEGACY_SUPPORT );
313328}
314329
@@ -317,6 +332,9 @@ static PyObject *py_zstd_library_legacy_format_support(PyObject* self, PyObject
317332 */
318333static PyObject * py_zstd_library_external (PyObject * self , PyObject * args )
319334{
335+ UNUSED (self );
336+ UNUSED (args );
337+
320338 return Py_BuildValue ("i" , LIBZSTD_EXTERNAL );
321339}
322340
@@ -326,6 +344,9 @@ static PyObject *py_zstd_library_external(PyObject* self, PyObject *args)
326344 */
327345static PyObject * py_zstd_with_threads (PyObject * self , PyObject * args )
328346{
347+ UNUSED (self );
348+ UNUSED (args );
349+
329350 return Py_BuildValue ("i" , ZSTD_MULTITHREAD );
330351}
331352
@@ -335,6 +356,9 @@ static PyObject *py_zstd_with_threads(PyObject* self, PyObject *args)
335356 */
336357static PyObject * py_zstd_with_asm (PyObject * self , PyObject * args )
337358{
359+ UNUSED (self );
360+ UNUSED (args );
361+
338362 return Py_BuildValue ("i" , ! ZSTD_DISABLE_ASM );
339363}
340364
@@ -345,6 +369,9 @@ static PyObject *py_zstd_with_asm(PyObject* self, PyObject *args)
345369 */
346370static PyObject * py_zstd_threads_count (PyObject * self , PyObject * args )
347371{
372+ UNUSED (self );
373+ UNUSED (args );
374+
348375 int32_t threads = UTIL_countPhysicalCores ();
349376
350377 return Py_BuildValue ("i" , threads );
@@ -355,6 +382,9 @@ static PyObject *py_zstd_threads_count(PyObject* self, PyObject *args)
355382 */
356383static PyObject * py_zstd_max_threads_count (PyObject * self , PyObject * args )
357384{
385+ UNUSED (self );
386+ UNUSED (args );
387+
358388 return Py_BuildValue ("i" , ZSTDMT_NBWORKERS_MAX );
359389}
360390
@@ -363,6 +393,9 @@ static PyObject *py_zstd_max_threads_count(PyObject* self, PyObject *args)
363393 */
364394static PyObject * py_zstd_min_compression_level (PyObject * self , PyObject * args )
365395{
396+ UNUSED (self );
397+ UNUSED (args );
398+
366399 return Py_BuildValue ("i" , ZSTD_MIN_CLEVEL );
367400}
368401
@@ -371,6 +404,9 @@ static PyObject *py_zstd_min_compression_level(PyObject* self, PyObject *args)
371404 */
372405static PyObject * py_zstd_max_compression_level (PyObject * self , PyObject * args )
373406{
407+ UNUSED (self );
408+ UNUSED (args );
409+
374410 return Py_BuildValue ("i" , ZSTD_MAX_CLEVEL );
375411}
376412
0 commit comments