rl_json
rl_json copied to clipboard
Compilation failure under gcc 14.1.1...
Hi all,
The code does not compile under gcc 14.1.1 (Fedora 40):
./generic/cbor.c: In function ?cbor_matches?:
./generic/cbor.c:713:113: ??????: passing argument 3 of ?tclStubsPtr->tcl_GetBytesFromObj? from incompatible pointer type [-Wincompatible-pointer-types]
713 | const uint8_t* pathval = (const uint8_t*)Tcl_GetBytesFromObj(interp, pathElem, &pathlen);
| ^~~~~~~~
| |
| size_t * {aka long unsigned int *}
./generic/cbor.c:713:113: ????????: expected ?int *? but argument is of type ?size_t *? {aka ?long unsigned int *?}
./generic/cbor.c: In function ?CBOR_GetDataItemFromPath?:
./generic/cbor.c:968:54: ??????: passing argument 3 of ?tclStubsPtr->tcl_GetBytesFromObj? from incompatible pointer type [-Wincompatible-pointer-types]
968 | bytes = Tcl_GetBytesFromObj(interp, cborObj, &byteslen);
| ^~~~~~~~~
| |
| size_t * {aka long unsigned int *}
./generic/cbor.c:968:54: ????????: expected ?int *? but argument is of type ?size_t *? {aka ?long unsigned int *?}