tree-sitter / tree-sitter-go

Go grammar for tree-sitter
MIT License
317 stars 63 forks source link

Null character warning #132

Closed brianstrauch closed 1 year ago

brianstrauch commented 1 year 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 1 year ago

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