tree-sitter / tree-sitter-go

Go grammar for tree-sitter
MIT License
310 stars 65 forks source link

Null character warning #132

Closed brianstrauch closed 11 months ago

brianstrauch commented 11 months ago

Building from the latest commit results in the following warning:

warning: lib/tree-sitter-go/src/parser.c:242:18: warning: null character(s) preserved in string literal [-Wnull-character]
warning:   [anon_sym_] = "<U+0000>",

This seems to correspond with changes made in https://github.com/tree-sitter/tree-sitter-go/commit/0308e24c57a379ea7e80da792882c8eb6b3e6fd5, which added a null character. Building with cc::Build::new().warnings(false) does not hide this warning.

brianstrauch commented 11 months ago

Looks like it was fixed here: https://github.com/tree-sitter/tree-sitter/pull/2491