Skip to content

error: incompatible pointer to integer conversion in latest clang #6

Description

@d4rky-pl

When trying to build ruby-packer or a project with ruby-packer on latest MacOS with clang 15.0.0, it fails with the following errors:

/var/folders/4r/b6_yv6ys02q90xwd03zpwk240000gn/T/rubyc/ruby-3.1.3.dev/enclose_io_unix.c:643:35: error: incompatible pointer to integer conversion passing 'struct stat *' to parameter of type 'int' [-Wint-conversion]
                        access(mkdir_workdir_expanded, &buf)
                                                       ^~~~
/var/folders/4r/b6_yv6ys02q90xwd03zpwk240000gn/T/rubyc/ruby-3.1.3.dev/enclose_io_unix.c:650:35: error: incompatible pointer to integer conversion passing 'struct stat *' to parameter of type 'int' [-Wint-conversion]
                        access(mkdir_workdir_expanded, &buf)
                                                       ^~~~

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions