chore: suppress warnings for intended behavior (#8)
This commit is contained in:
parent
ea45e670ee
commit
470dc1e3bc
|
@ -1,5 +1,10 @@
|
||||||
#include <tree_sitter/parser.h>
|
#include <tree_sitter/parser.h>
|
||||||
|
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
|
#endif
|
||||||
|
|
||||||
enum TokenType {
|
enum TokenType {
|
||||||
LINE_ENDING_OR_EOF
|
LINE_ENDING_OR_EOF
|
||||||
};
|
};
|
||||||
|
@ -33,3 +38,7 @@ bool tree_sitter_toml_external_scanner_scan(
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue