chore: suppress warnings for intended behavior (#8)

This commit is contained in:
Ika 2020-06-07 16:46:47 +08:00 committed by GitHub
parent ea45e670ee
commit 470dc1e3bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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