Fix flushStdin() accepting variable arguments

This commit is contained in:
2020-02-11 14:12:51 +01:00
parent f478f29e05
commit 89731467d9

4
main.c
View File

@@ -36,7 +36,7 @@ typedef enum {
JACOBI = 0, GAUSS_SEIDEL = 1
} Method;
void flushStdin();
void flushStdin(void);
bool load(const char* filename, Matrix* A, Vector* b, Vector* x);
Vector* solve(Method method, Matrix* A, Vector* b, Vector* x, double e);
@@ -209,7 +209,7 @@ int readMatrixLine(FILE* file, double* matrixLine, int maxCols) {
return col;
}
void flushStdin() {
void flushStdin(void) {
int c;
while((c = getchar()) != '\n' && c != EOF && c != 0);
}