Skip to content

Fix circular includes between types.h and oid.h#7059

Merged
ethomson merged 1 commit into
libgit2:mainfrom
georgthegreat:circular-includes
Jun 5, 2025
Merged

Fix circular includes between types.h and oid.h#7059
ethomson merged 1 commit into
libgit2:mainfrom
georgthegreat:circular-includes

Conversation

@georgthegreat
Copy link
Copy Markdown
Contributor

Fix the following warning reported by clang-tidy:

contrib/libs/libgit2/include/git2/oid.h:11:10: error: circular header file dependency detected while including 'types.h', please check the include path [misc-header-include-cycle,-warnings-as-errors]
   11 | #include "types.h"
      |          ^
contrib/libs/libgit2/include/git2/types.h:70:10: note: 'oid.h' included from here
   70 | #include "oid.h"

@ethomson ethomson merged commit 3082736 into libgit2:main Jun 5, 2025
@ethomson
Copy link
Copy Markdown
Member

ethomson commented Jun 5, 2025

Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants