Skip to content

fix(lib): remove duplicate TSLanguageMetadata typedef#4268

Merged
maxbrunsfeld merged 1 commit intotree-sitter:masterfrom
notxvilka:notxvilka-patch-1
Mar 6, 2025
Merged

fix(lib): remove duplicate TSLanguageMetadata typedef#4268
maxbrunsfeld merged 1 commit intotree-sitter:masterfrom
notxvilka:notxvilka-patch-1

Conversation

@notxvilka
Copy link
Contributor

To fix the following error:

clang -Isubprojects/tree-sitter-0.25.3/libtree_sitter.a.p -I../subprojects/tree-sitter-0.25.3/lib/src -I../subprojects/tree-sitter-0.25.3/lib/include -fdiagnostics-color=always -fsanitize=address,undefined -fno-omit-frame-pointer -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c99 -O2 -g --std=gnu99 -DASAN=1 -DRZ_ASSERT_STDOUT=1 -fPIC -MD -MQ subprojects/tree-sitter-0.25.3/libtree_sitter.a.p/lib_src_lib.c.o -MF subprojects/tree-sitter-0.25.3/libtree_sitter.a.p/lib_src_lib.c.o.d -o subprojects/tree-sitter-0.25.3/libtree_sitter.a.p/lib_src_lib.c.o -c ../subprojects/tree-sitter-0.25.3/lib/src/lib.c
In file included from ../subprojects/tree-sitter-0.25.3/lib/src/lib.c:1:
In file included from ../subprojects/tree-sitter-0.25.3/lib/src/./alloc.c:2:
../subprojects/tree-sitter-0.25.3/lib/include/tree_sitter/api.h:199:3: error: redefinition of typedef 'TSLanguageMetadata' is a C11 feature [-Werror,-Wtypedef-redefinition]
} TSLanguageMetadata;
  ^
../subprojects/tree-sitter-0.25.3/lib/include/tree_sitter/api.h:45:35: note: previous definition is here
typedef struct TSLanguageMetadata TSLanguageMetadata;
                                  ^
1 error generated.

@notxvilka notxvilka force-pushed the notxvilka-patch-1 branch from 005d4f8 to f1a5336 Compare March 6, 2025 14:20
@notxvilka
Copy link
Contributor Author

@amaanq could you please take a quick look and also approve workflows?

Copy link
Contributor

@maxbrunsfeld maxbrunsfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@maxbrunsfeld maxbrunsfeld merged commit a00fab7 into tree-sitter:master Mar 6, 2025
15 checks passed
@clason clason added the ci:backport release-0.25 Backport label label Mar 6, 2025
@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.25:

github-actions bot pushed a commit that referenced this pull request Mar 6, 2025
clason pushed a commit that referenced this pull request Mar 6, 2025
@notxvilka notxvilka deleted the notxvilka-patch-1 branch March 7, 2025 03:51
@notxvilka notxvilka mentioned this pull request Mar 17, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants