Skip to content

gcc 14.3 lime interface not happy about our data type for the offset #686

Description

@kostrzewa
src/lib/io/utils_read_message.c:44:36: error: passing argument 2 of ‘limeReaderReadData’ from incompatible pointer type [-Wincompatible-pointer-types]
   44 |   status = ReaderReadData(*buffer, (MPI_Offset *)&bytesRead, reader);
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                    |
      |                                    MPI_Offset * {aka long long int *}
In file included from lime-924aa0/install_dir/include/lime.h:9,
                 from src/lib/io/utils.ih:20,
                 from src/lib/io/utils_read_message.c:20:
lime-924aa0/install_dir/include/lime_reader.h:112:48: note: expected ‘n_uint64_t *’ {aka ‘long unsigned int *’} but argument is of type ‘MPI_Offset *’ {aka ‘long long int *’}
  112 | int limeReaderReadData(void *dest, n_uint64_t *nbytes, LimeReader *r);
      |                                    ~~~~~~~~~~~~^~~~~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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