Fixed all compilation warnings for mpc.c and mpc.h. Now compiles successfully on clang with -Werror and myriad warnings invoked (see Makefile for details). Compiles successfully on gcc with -Werror (ptest.c and example code does not, however).

This commit is contained in:
Dalton Woodard
2014-10-14 23:18:02 -07:00
parent c26ed9a09b
commit bd9e5d98d6
2 changed files with 72 additions and 54 deletions

10
mpc.h
View File

@@ -21,10 +21,14 @@
** State Type
*/
/*
** changed to unsigned values for indexing in state,
** invalid is now signified by SIZE_MAX.
*/
typedef struct {
int pos;
int row;
int col;
size_t pos;
size_t row;
size_t col;
} mpc_state_t;
/*