Skip to content

Compilation failure under gcc 14.1.1... #45

@petasis

Description

@petasis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions