View Issue Details

IDProjectCategoryView StatusLast Update
0006534DarkRadiantCompilation/Buildpublic10.05.2024 21:20
ReporterDavyJones Assigned To 
PrioritynormalSeveritynormalReproducibilityalways
Status newResolutionopen 
PlatformLinux 
Product Version3.9.0 
Summary0006534: invalid conversion from ‘const git_commit**’ to ‘git_commit* const*’
DescriptionArch Linux
gcc version 14.1.1 20240507

On current version (after git pull) I got compiling error:

[ 15%] Building CXX object plugins/vcs/CMakeFiles/vcs.dir/Repository.cpp.o
/usr/local/src/DarkRadiant/plugins/vcs/Repository.cpp: In member function ‘void vcs::git::Repository::createCommit(const vcs::git::CommitMetadata&, const vcs::git::Reference::Ptr&)’:
/usr/local/src/DarkRadiant/plugins/vcs/Repository.cpp:370:49: error: invalid conversion from ‘const git_commit**’ to ‘git_commit* const*’ [-fpermissive]
  370 | parentCommits.size(), parentCommits.data());
      | ~~~~~~~~~~~~~~~~~~^~
      | |
      | const 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 /usr/local/src/DarkRadiant/plugins/vcs/Reference.h:5,
                 from /usr/local/src/DarkRadiant/plugins/vcs/Repository.h:5,
                 from /usr/local/src/DarkRadiant/plugins/vcs/Repository.cpp:1:
/usr/include/git2/commit.h:369:28: note: initializing argument 10 of ‘int git_commit_create(git_oid*, git_repository*, const char*, const git_signature*, const git_signature*, const char*, const char*, const git_tree*, size_t, git_commit* const*)’
  369 | git_commit * const parents[]);
      | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
make[2]: *** [plugins/vcs/CMakeFiles/vcs.dir/build.make:104: plugins/vcs/CMakeFiles/vcs.dir/Repository.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1350: plugins/vcs/CMakeFiles/vcs.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Steps To Reproducecmake .
make
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
10.05.2024 21:20 DavyJones New Issue