Fix compilation warnings (#635)

* lib: fix compilation warnings

* ci: add CFLAGS
This commit is contained in:
Thomas Vigouroux 2020-06-03 21:19:57 +02:00 committed by GitHub
parent 9a82dcc666
commit 81d533d2d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 6 deletions

View file

@ -101,9 +101,10 @@ typedef struct {
static const char *ts_string_input_read(
void *_self,
uint32_t byte,
TSPoint _,
TSPoint pt,
uint32_t *length
) {
(void)pt;
TSStringInput *self = (TSStringInput *)_self;
if (byte >= self->length) {
*length = 0;
@ -210,6 +211,7 @@ static ErrorComparison ts_parser__compare_versions(
ErrorStatus a,
ErrorStatus b
) {
(void)self;
if (!a.is_in_error && b.is_in_error) {
if (a.cost < b.cost) {
return ErrorComparisonTakeLeft;