Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure under gcc 14.1.1... #45

Open
petasis opened this issue Jul 25, 2024 · 0 comments
Open

Compilation failure under gcc 14.1.1... #45

petasis opened this issue Jul 25, 2024 · 0 comments

Comments

@petasis
Copy link

petasis commented Jul 25, 2024

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 *?}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant