Skip to content

error: passing argument 10 of ‘git_commit_create’ from incompatible pointer type [-Wincompatible-pointer-types] #11

@Freed-Wu

Description

@Freed-Wu
lua-git2 scm-0 depends on lua >= 5.1, < 5.5 (5.1-1 provided by VM: success)
gcc -O2 -fPIC -I/usr/include/lua5.1 -c src/pre_generated-git2.nobj.c -o src/pre_generated-git2.nobj.o -I/usr/include
src/pre_generated-git2.nobj.c: In function ‘Commit__create__func’:
src/pre_generated-git2.nobj.c:3740:42: error: passing argument 10 of ‘git_commit_create’ from incompatible pointer type [-Wincompatible-pointer-types]
 3740 |                 tree_idx8, parent_count, parents);
      |                                          ^~~~~~~
      |                                          |
      |                                          git_commit **
In file included from /usr/include/git2/repository.h:14,
                 from /usr/include/git2/annotated_commit.h:11,
                 from /usr/include/git2.h:11,
                 from src/pre_generated-git2.nobj.c:70:
/usr/include/git2/commit.h:369:27: note: expected ‘const git_commit **’ but argument is of type ‘git_commit **’
  369 |         const git_commit *parents[]);
      |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~

Error: Failed installing dependency: https://luarocks.org/dev/lua-git2-scm-0.rockspec - Build error: Failed compiling object src/pre_generated-git2.nobj.o

OS: ArchLinux
lua 5.1
libgit2: 1.8.4

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