Fix compiler warnings.

This commit is contained in:
Steveice10 2016-12-04 20:21:43 -08:00
parent 0ec52fa42e
commit e04d0aa1f0
2 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,5 +1,6 @@
.idea
.vs
CMakeLists.txt
build
output
output

View File

@ -255,7 +255,7 @@ static void flood_fill_seed(struct quirc *q, int start_x, int start_y, int from,
fill_stack_push(&s, start_x, start_y);
do{
int x, y;
int x = 0, y = 0;
fill_stack_pop(&s, &x, &y);
int left = x, right = x, i;
@ -972,8 +972,8 @@ static void rotate_capstone(struct quirc_capstone *cap,
{
struct quirc_point copy[4];
int j;
int best;
int best_score;
int best = 0;
int best_score = 0;
for (j = 0; j < 4; j++) {
struct quirc_point *p = &cap->corners[j];