[Hamlib-developer] [Hamlib/Hamlib] 4c3cf6: Fix compiler warnings issued by clang
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Nate B. <no...@gi...> - 2025-09-21 23:19:19
|
Branch: refs/heads/master Home: https://github.com/Hamlib/Hamlib Commit: 4c3cf66d84f606b4f339a6f615c16532b1fcb0c4 https://github.com/Hamlib/Hamlib/commit/4c3cf66d84f606b4f339a6f615c16532b1fcb0c4 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-09-18 (Thu, 18 Sep 2025) Changed paths: M bindings/rig.swg Log Message: ----------- Fix compiler warnings issued by clang Fixes: hamlibpy_wrap.c:4194:12: warning: expression which evaluates to zero treated as a null pointer constant of type 'int *' [-Wnon-literal-null-conversion] 4194 | return RIG_OK; | ^~~~~~ hamlibpy_wrap.c:4213:12: warning: expression which evaluates to zero treated as a null pointer constant of type 'int *' [-Wnon-literal-null-conversion] 4213 | return RIG_OK; | ^~~~~~ hamlibpy_wrap.c:4230:12: warning: expression which evaluates to zero treated as a null pointer constant of type 'int *' [-Wnon-literal-null-conversion] 4230 | return RIG_OK; | ^~~~~~ hamlibpy_wrap.c:4248:12: warning: expression which evaluates to zero treated as a null pointer constant of type 'int *' [-Wnon-literal-null-conversion] 4248 | return RIG_OK; | ^~~~~~ hamlibpy_wrap.c:4266:12: warning: expression which evaluates to zero treated as a null pointer constant of type 'int *' [-Wnon-literal-null-conversion] 4266 | return RIG_OK; | ^~~~~~ hamlibpy_wrap.c:4282:12: warning: expression which evaluates to zero treated as a null pointer constant of type 'int *' [-Wnon-literal-null-conversion] 4282 | return RIG_OK; | ^~~~~~ hamlibpy_wrap.c:4298:12: warning: expression which evaluates to zero treated as a null pointer constant of type 'int *' [-Wnon-literal-null-conversion] 4298 | return RIG_OK; | ^~~~~~ Commit: aa665d1e1976131d78df7203893d57b6b004cf4a https://github.com/Hamlib/Hamlib/commit/aa665d1e1976131d78df7203893d57b6b004cf4a Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-09-18 (Thu, 18 Sep 2025) Changed paths: M bindings/rig.swg Log Message: ----------- Fix compiler warning issued by clang Fixes: hamlibpy_wrap.c:4668:46: warning: passing 'size_t *' (aka 'unsigned long *') to parameter of type 'Py_ssize_t *' (aka 'long *') converts between pointers to integer types with different sign [-Wpointer-sign] 4668 | PyBytes_AsStringAndSize(bytes_obj, &send, &send_len); | ^~~~~~~~~ Commit: df975aaf12cc60686909535f5b8208895a35f1c6 https://github.com/Hamlib/Hamlib/commit/df975aaf12cc60686909535f5b8208895a35f1c6 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-09-20 (Sat, 20 Sep 2025) Changed paths: M bindings/rig.swg Log Message: ----------- Fix compiler warnings issued by clang Fixes: hamlibpy_wrap.c:4692:35: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 4692 | count = rig_send_raw(self->rig, send, send_len, reply_buffer, reply_len, term); | ^~~~ ../include/hamlib/rig.h:3466:71: note: passing argument to parameter 'send' here 3466 | extern HAMLIB_EXPORT(int) rig_send_raw(RIG *rig, const unsigned char* send, int send_len, unsigned char* reply, int reply_len, unsigned char *term); | ^ hamlibpy_wrap.c:4692:76: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 4692 | count = rig_send_raw(self->rig, send, send_len, reply_buffer, reply_len, term); | ^~~~ ../include/hamlib/rig.h:3466:143: note: passing argument to parameter 'term' here 3466 | extern HAMLIB_EXPORT(int) rig_send_raw(RIG *rig, const unsigned char* send, int send_len, unsigned char* reply, int reply_len, unsigned char *term); | ^ hamlibpy_wrap.c:4696:39: warning: passing 'unsigned char[256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 4696 | return PyUnicode_FromStringAndSize(reply_buffer, count); | ^~~~~~~~~~~~ /usr/include/python3.13/unicodeobject.h:123:17: note: passing argument to parameter 'u' here 123 | const char *u, /* UTF-8 encoded string */ | ^ hamlibpy_wrap.c:4698:37: warning: passing 'unsigned char[256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 4698 | return PyBytes_FromStringAndSize(reply_buffer, count); | ^~~~~~~~~~~~ /usr/include/python3.13/bytesobject.h:31:62: note: passing argument to parameter here 31 | PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t); | ^ Commit: 3ea25e6ba072cd1e4c2c2095927ee0e9c805d3c9 https://github.com/Hamlib/Hamlib/commit/3ea25e6ba072cd1e4c2c2095927ee0e9c805d3c9 Author: Nate Bargmann <n0...@n0...> Date: 2025-09-20 (Sat, 20 Sep 2025) Changed paths: M bindings/rig.swg Log Message: ----------- Merge GitHub PR #1918 Compare: https://github.com/Hamlib/Hamlib/compare/15d1fab7e889...3ea25e6ba072 To unsubscribe from these emails, change your notification settings at https://github.com/Hamlib/Hamlib/settings/notifications |