Skip to content

Commit

Permalink
fix: unused warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Starry-OvO committed Jun 11, 2023
1 parent 11bb8af commit 5f45f7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aiotieba/helper/crypto/include/tbcrypto/sign.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#include "tbcrypto/_python.h"
#include "tbcrypto/utils.h"

PyObject* sign(PyObject* TBC_UNUSED self, PyObject* args);
PyObject* sign(TBC_UNUSED PyObject* self, PyObject* args);
6 changes: 3 additions & 3 deletions aiotieba/helper/crypto/src/tbcrypto/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "tbcrypto/utils.h"
#include "tbcrypto/zid.h"

PyObject* cuid_galaxy2(PyObject* TBC_UNUSED self, PyObject* args)
PyObject* cuid_galaxy2(TBC_UNUSED PyObject* self, PyObject* args)
{
unsigned char dst[TBC_CUID_GALAXY2_SIZE];
const unsigned char* androidID;
Expand All @@ -28,7 +28,7 @@ PyObject* cuid_galaxy2(PyObject* TBC_UNUSED self, PyObject* args)
return PyUnicode_FromKindAndData(PyUnicode_1BYTE_KIND, dst, TBC_CUID_GALAXY2_SIZE);
}

PyObject* c3_aid(PyObject* TBC_UNUSED self, PyObject* args)
PyObject* c3_aid(TBC_UNUSED PyObject* self, PyObject* args)
{
unsigned char dst[TBC_C3_AID_SIZE];
const unsigned char* androidID;
Expand All @@ -55,7 +55,7 @@ PyObject* c3_aid(PyObject* TBC_UNUSED self, PyObject* args)
return PyUnicode_FromKindAndData(PyUnicode_1BYTE_KIND, dst, TBC_C3_AID_SIZE);
}

PyObject* rc4_42(PyObject* TBC_UNUSED self, PyObject* args)
PyObject* rc4_42(TBC_UNUSED PyObject* self, PyObject* args)
{
unsigned char dst[TBC_RC4_SIZE];
const unsigned char* xyusMd5Str;
Expand Down
2 changes: 1 addition & 1 deletion aiotieba/helper/crypto/src/tbcrypto/sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static inline void __tbc_pyStr2UTF8(const char** dst, size_t* dstSize, PyObject*
}
}

PyObject* sign(PyObject* TBC_UNUSED self, PyObject* args)
PyObject* sign(TBC_UNUSED PyObject* self, PyObject* args)
{
PyObject* items;
if (!PyArg_ParseTuple(args, "O", &items)) {
Expand Down

0 comments on commit 5f45f7b

Please sign in to comment.